added db schema to initial migration

This commit is contained in:
2025-02-08 09:25:22 -06:00
parent 5c941e7c62
commit 8663862f6d
2 changed files with 11 additions and 11 deletions
+11 -6
View File
@@ -1,9 +1,14 @@
-- +goose Up -- +goose Up
-- +goose StatementBegin -- +goose StatementBegin
SELECT 'up SQL query'; CREATE TABLE event (
-- +goose StatementEnd url TEXT NOT NULL UNIQUE,
slug TEXT NOT NULL UNIQUE,
-- +goose Down name TEXT NOT NULL,
-- +goose StatementBegin location TEXT NOT NULL,
SELECT 'down SQL query'; organization TEXT NOT NULL,
image TEXT NOT NULL,
date INTEGER NOT NULL,
fights TEXT NOT NULL,
history TEXT NOT NULL
);
-- +goose StatementEnd -- +goose StatementEnd
-5
View File
@@ -1,5 +0,0 @@
CREATE TABLE db_events (
url TEXT NOT NULL UNIQUE,
data BLOB,
history BLOB
);