memos/store/db/sqlite/migration/prod/0.17/00__inbox.sql

10 lines
258 B
MySQL
Raw Normal View History

2023-10-28 09:44:52 +08:00
-- inbox
CREATE TABLE inbox (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
sender_id INTEGER NOT NULL,
receiver_id INTEGER NOT NULL,
status TEXT NOT NULL,
message TEXT NOT NULL DEFAULT '{}'
);