lume/src-tauri/migrations/20230521092300_add_block_model.sql

11 lines
320 B
MySQL
Raw Normal View History

2023-05-22 07:04:35 +00:00
-- 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,
2023-06-25 13:36:19 +00:00
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
2023-05-22 07:04:35 +00:00
FOREIGN KEY (account_id) REFERENCES accounts (id)
);