lume/src-tauri/migrations/20230814083543_add_events_table.sql

13 lines
335 B
MySQL
Raw Normal View History

2023-08-14 11:15:58 +00:00
-- Add migration script here
CREATE TABLE
events (
2023-08-17 08:11:40 +00:00
id TEXT NOT NULL PRIMARY KEY,
account_id INTEGER NOT NULL,
event TEXT NOT NULL,
author TEXT NOT NULL,
2023-08-19 01:56:19 +00:00
kind NUMBER NOT NULL DEFAULt 1,
2023-08-17 08:11:40 +00:00
root_id TEXT,
reply_id TEXT,
created_at INTEGER NOT NULL,
FOREIGN KEY (account_id) REFERENCES accounts (id)
2023-08-14 11:15:58 +00:00
);