chore: add storage logger and handler in /int
This commit is contained in:
10
backend/internal/storage/migrations.go
Normal file
10
backend/internal/storage/migrations.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package storage
|
||||
|
||||
const Migrations = `
|
||||
CREATE TABLE IF NOT EXISTS posts(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
title TEXT NOT NULL
|
||||
content TEXT NOT NULL
|
||||
CREATED_AT DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
`
|
||||
Reference in New Issue
Block a user