mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
f12e246c15
I am updating the layout node setup to write to its own wave object. The existing setup requires me to plumb the layout updates through every time the tab gets updated, which produces a lot of annoying and unintuitive design patterns. With this new setup, the tab object doesn't get written to when the layout changes, only the layout object will get written to. This prevents collisions when both the tab object and the layout node object are getting updated, such as when a new block is added or deleted.
31 lines
554 B
SQL
31 lines
554 B
SQL
CREATE TABLE db_client (
|
|
oid varchar(36) PRIMARY KEY,
|
|
version int NOT NULL,
|
|
data json NOT NULL
|
|
);
|
|
|
|
CREATE TABLE db_window (
|
|
oid varchar(36) PRIMARY KEY,
|
|
version int NOT NULL,
|
|
data json NOT NULL
|
|
);
|
|
|
|
CREATE TABLE db_workspace (
|
|
oid varchar(36) PRIMARY KEY,
|
|
version int NOT NULL,
|
|
data json NOT NULL
|
|
);
|
|
|
|
CREATE TABLE db_tab (
|
|
oid varchar(36) PRIMARY KEY,
|
|
version int NOT NULL,
|
|
data json NOT NULL
|
|
);
|
|
|
|
CREATE TABLE db_block (
|
|
oid varchar(36) PRIMARY KEY,
|
|
version int NOT NULL,
|
|
data json NOT NULL
|
|
);
|
|
|