Add intial database migrations

This commit is contained in:
Nicholas Keller
2026-07-24 00:40:16 -04:00
commit e55ea4df7b
7 changed files with 76 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
CREATE TABLE IF NOT EXISTS posts (
id integer primary key autoincrement not null,
created_at datetime default CURRENT_TIMESTAMP,
creator_id integer not null references users,
title text not null,
description text,
content text,
tags text
-- public boolean
);
CREATE TABLE IF NOT EXISTS users (
id integer primary key autoincrement not null,
created_at datetime default CURRENT_TIMESTAMP,
name text,
username text not null unique,
password text
);