Files
d3m0k1d.ru/backend/internal/storage/migrations.go
d3m0k1d 9b9d45e0a6
All checks were successful
Backend ci / build (push) Successful in 7m43s
chore: coded post req for create posts on db
2026-02-03 23:21:01 +03:00

11 lines
211 B
Go

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
);
`