completed migrate to tauri-sql
This commit is contained in:
10
src-tauri/migrations/20230418080146_create_chats.sql
Normal file
10
src-tauri/migrations/20230418080146_create_chats.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Add migration script here
|
||||
-- create chats table
|
||||
CREATE TABLE
|
||||
chats (
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
account_id INTEGER NOT NULL,
|
||||
pubkey TEXT NOT NULL UNIQUE,
|
||||
created_at INTEGER NOT NULL,
|
||||
FOREIGN KEY (account_id) REFERENCES accounts (id)
|
||||
);
|
||||
Reference in New Issue
Block a user