waveterm/db/migrations-blockstore/000001_init.up.sql

20 lines
452 B
MySQL
Raw Normal View History

CREATE TABLE db_block_file (
blockid varchar(36) NOT NULL,
name varchar(200) NOT NULL,
size bigint NOT NULL,
createdts bigint NOT NULL,
modts bigint NOT NULL,
2024-05-13 09:02:32 +02:00
opts json NOT NULL,
meta json NOT NULL,
PRIMARY KEY (blockid, name)
);
CREATE TABLE db_block_data (
blockid varchar(36) NOT NULL,
name varchar(200) NOT NULL,
partidx int NOT NULL,
data blob NOT NULL,
PRIMARY KEY(blockid, name, partidx)
);