refactor: create db types
This commit is contained in:
parent
82f0e14abf
commit
6af1e8f326
7 changed files with 31 additions and 31 deletions
23
src/db/types.ts
Normal file
23
src/db/types.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
export class Filename {
|
||||
id!: number;
|
||||
job_id!: number;
|
||||
file_name!: string;
|
||||
output_file_name!: string;
|
||||
status!: string;
|
||||
}
|
||||
|
||||
export class Jobs {
|
||||
finished_files!: number;
|
||||
id!: number;
|
||||
user_id!: number;
|
||||
date_created!: string;
|
||||
status!: string;
|
||||
num_files!: number;
|
||||
files_detailed!: Filename[];
|
||||
}
|
||||
|
||||
export class User {
|
||||
id!: number;
|
||||
email!: string;
|
||||
password!: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue