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 StatementBegin
SELECT 'up SQL query';
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
SELECT 'down SQL query';
CREATE TABLE event (
url TEXT NOT NULL UNIQUE,
slug TEXT NOT NULL UNIQUE,
name TEXT NOT NULL,
location TEXT NOT NULL,
organization TEXT NOT NULL,
image TEXT NOT NULL,
date INTEGER NOT NULL,
fights TEXT NOT NULL,
history TEXT NOT NULL
);
-- +goose StatementEnd
-5
View File
@@ -1,5 +0,0 @@
CREATE TABLE db_events (
url TEXT NOT NULL UNIQUE,
data BLOB,
history BLOB
);