Have a mostly working API server in go that's talking to streams/index.html and related pages.
This commit is contained in:
parent
d49e1fbdc0
commit
c576a61fbe
7 changed files with 168 additions and 21 deletions
16
migrations/20250531143519_init.sql
Normal file
16
migrations/20250531143519_init.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
PRAGMA foreign_keys = ON;
|
||||
CREATE TABLE stream_link (
|
||||
id INTEGER PRIMARY KEY, url TEXT,
|
||||
stream_id INTEGER,
|
||||
description TEXT,
|
||||
FOREIGN KEY(stream_id) REFERENCES stream(id));
|
||||
CREATE TABLE stream (id INTEGER PRIMARY KEY, title TEXT, description TEXT);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE stream_link;
|
||||
DROP TABLE stream;
|
||||
-- +goose StatementEnd
|
Loading…
Add table
Add a link
Reference in a new issue