feat: add published at db models and fix repo for this update

This commit is contained in:
d3m0k1d
2026-02-15 00:51:29 +03:00
parent ea8fa90a31
commit a96ef069cc
3 changed files with 9 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ const Migrations = `
CREATE TABLE IF NOT EXISTS posts(
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL,
published BOOLEAN DEFAULT 0,
content TEXT NOT NULL,
CREATED_AT DATETIME DEFAULT CURRENT_TIMESTAMP
);