Feat: add storage interface; add sqlite impl
This commit is contained in:
7
storage/migrations/001_init.up.sql
Normal file
7
storage/migrations/001_init.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE chat (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL,
|
||||
msgs TEXT NOT NULL, -- Store messages as a comma-separated string
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Reference in New Issue
Block a user