diff options
| author | ilotterytea <me@ilotterytea.kz> | 2025-10-10 20:55:37 +0500 |
|---|---|---|
| committer | ilotterytea <me@ilotterytea.kz> | 2025-10-10 20:55:37 +0500 |
| commit | b1a885ac229892bac528e6fea4e011a1b240867b (patch) | |
| tree | 48152aa48c41defe7f850390ea1c99db2c725438 /database.sql | |
initial commit
Diffstat (limited to 'database.sql')
| -rw-r--r-- | database.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/database.sql b/database.sql new file mode 100644 index 0000000..ab284a5 --- /dev/null +++ b/database.sql @@ -0,0 +1,13 @@ +CREATE TABLE IF NOT EXISTS statuses ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title TEXT NOT NULL, + contents TEXT, + posted_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS comments ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT, + contents TEXT NOT NULL, + posted_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP +);
\ No newline at end of file |
