remove all drops from sql files, add triggers and functions for updated_at, added files and folder tables, update some types
This commit is contained in:
parent
6fdc82dd49
commit
94ba46cc2d
11 changed files with 295 additions and 101 deletions
33
types/file.d.ts
vendored
Normal file
33
types/file.d.ts
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
type File = {
|
||||
id: UUID;
|
||||
owner: UUID;
|
||||
folder?: UUID | null;
|
||||
|
||||
name: string;
|
||||
original_name?: string | null;
|
||||
mime_type: string;
|
||||
size: number;
|
||||
|
||||
views: number;
|
||||
max_views: number;
|
||||
password?: string | null;
|
||||
favorite: boolean;
|
||||
tags: string[];
|
||||
thumbnail: boolean;
|
||||
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
expires_at?: Date | null;
|
||||
};
|
||||
|
||||
type Folder = {
|
||||
id: UUID;
|
||||
owner: UUID;
|
||||
|
||||
name: string;
|
||||
public: boolean;
|
||||
allow_uploads: boolean;
|
||||
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue