mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-08 19:38:51 +01:00
22 lines
509 B
SQL
22 lines
509 B
SQL
CREATE TABLE bookmark (
|
|
bookmarkid varchar(36) PRIMARY KEY,
|
|
createdts bigint NOT NULL,
|
|
cmdstr text NOT NULL,
|
|
alias varchar(50) NOT NULL,
|
|
tags json NOT NULL,
|
|
description text NOT NULL
|
|
);
|
|
|
|
CREATE TABLE bookmark_order (
|
|
tag varchar(50) NOT NULL,
|
|
bookmarkid varchar(36) NOT NULL,
|
|
orderidx int NOT NULL,
|
|
PRIMARY KEY (tag, bookmarkid)
|
|
);
|
|
|
|
CREATE TABLE bookmark_cmd (
|
|
bookmarkid varchar(36) NOT NULL,
|
|
cmdid varchar(36) NOT NULL,
|
|
PRIMARY KEY (bookmarkid, cmdid)
|
|
);
|