mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 22:01:10 +10:00
bug fixes and UI
This commit is contained in:
@ -6,22 +6,17 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||
.addColumn('id', 'uuid', (col) =>
|
||||
col.primaryKey().defaultTo(sql`gen_uuid_v7()`),
|
||||
)
|
||||
//type: import or export
|
||||
// type (import, export)
|
||||
.addColumn('type', 'varchar', (col) => col)
|
||||
// source - generic, notion, confluence
|
||||
// type or provider?
|
||||
// source (generic, notion, confluence)
|
||||
.addColumn('source', 'varchar', (col) => col)
|
||||
// status (enum: PENDING|PROCESSING|SUCCESS|FAILED),
|
||||
// status (pending|processing|success|failed),
|
||||
.addColumn('status', 'varchar', (col) => col)
|
||||
// file name
|
||||
// file path
|
||||
// file size
|
||||
|
||||
.addColumn('file_name', 'varchar', (col) => col.notNull())
|
||||
.addColumn('file_path', 'varchar', (col) => col.notNull())
|
||||
.addColumn('file_size', 'int8', (col) => col)
|
||||
.addColumn('file_ext', 'varchar', (col) => col)
|
||||
|
||||
.addColumn('error_message', 'varchar', (col) => col)
|
||||
.addColumn('creator_id', 'uuid', (col) => col.references('users.id'))
|
||||
.addColumn('space_id', 'uuid', (col) =>
|
||||
col.references('spaces.id').onDelete('cascade'),
|
||||
@ -35,7 +30,6 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||
.addColumn('updated_at', 'timestamptz', (col) =>
|
||||
col.notNull().defaultTo(sql`now()`),
|
||||
)
|
||||
.addColumn('completed_at', 'timestamptz', (col) => col)
|
||||
.addColumn('deleted_at', 'timestamptz', (col) => col)
|
||||
.execute();
|
||||
}
|
||||
|
||||
2
apps/server/src/database/types/db.d.ts
vendored
2
apps/server/src/database/types/db.d.ts
vendored
@ -123,10 +123,10 @@ export interface Comments {
|
||||
}
|
||||
|
||||
export interface FileTasks {
|
||||
completedAt: Timestamp | null;
|
||||
createdAt: Generated<Timestamp>;
|
||||
creatorId: string | null;
|
||||
deletedAt: Timestamp | null;
|
||||
errorMessage: string | null;
|
||||
fileExt: string | null;
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
|
||||
Reference in New Issue
Block a user