lume/src-tauri/migrations/20230521092300_add_block_model.sql
Ren Amamiya 6af0b453e3 WIP
2023-06-25 20:36:19 +07:00

11 lines
320 B
SQL

-- Add migration script here
CREATE TABLE
blocks (
id INTEGER NOT NULL PRIMARY KEY,
account_id INTEGER NOT NULL,
kind INTEGER NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (account_id) REFERENCES accounts (id)
);