Files
d3m0k1d.ru/backend/internal/storage/migrations.go
d3m0k1d 4a5c42ca06
All checks were successful
Backend ci / build (push) Successful in 3m23s
feat: update callback handler and repository for user
2026-02-10 22:45:27 +03:00

19 lines
357 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
);
CREATE TABLE IF NOT EXISTS users(
id INTEGER PRIMARY KEY AUTOINCREMENT,
email TEXT,
github_id INTEGER,
github_login TEXT,
avatar_url TEXT
);
`