mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-20 10:49:20 +08:00
feature: synchronize documents asynchronously (#97)
* feat: update jooq model * feat: add project sync task * feat: update frontend resources
This commit is contained in:
14
dao/src/main/resources/db/migration/V1.3__sync_task.sql
Normal file
14
dao/src/main/resources/db/migration/V1.3__sync_task.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS project_sync_task
|
||||
(
|
||||
`id` INT PRIMARY KEY AUTO_INCREMENT,
|
||||
`project_id` INT NOT NULL,
|
||||
`user_id` INT NOT NULL,
|
||||
`status` VARCHAR(32) NOT NULL DEFAULT 'NEW' COMMENT 'NEW \ RUNNING \ FINISHED \ FAILED \ CANCELED',
|
||||
`result` VARCHAR(1024) NOT NULL DEFAULT '',
|
||||
`run_at` DATETIME DEFAULT NULL,
|
||||
`update_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`create_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
INDEX idx_project_id (project_id),
|
||||
INDEX idx_user_id (user_id)
|
||||
) CHARSET utf8mb4
|
||||
COLLATE utf8mb4_unicode_ci;
|
Reference in New Issue
Block a user