feat: add title field to workspace

This commit is contained in:
Steven
2023-02-28 07:03:37 +08:00
parent 544bd3555b
commit 910e4e1678
8 changed files with 67 additions and 25 deletions

View File

@ -37,6 +37,7 @@ CREATE TABLE workspace (
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL',
name TEXT NOT NULL UNIQUE,
title TEXT NOT NULL,
description TEXT NOT NULL DEFAULT ''
);

View File

@ -1,29 +1,33 @@
INSERT INTO
INSERT INTO
workspace (
`id`,
`id`,
`creator_id`,
`name`,
`name`,
`title`,
`description`
)
VALUES
(
11,
11,
101,
'minecraft',
'minecraft',
''
);
INSERT INTO
INSERT INTO
workspace (
`id`,
`id`,
`creator_id`,
`name`,
`name`,
`title`,
`description`
)
VALUES
(
12,
12,
102,
'bob',
'bob-room',
''
);
);