Have a mostly working API server in go that's talking to streams/index.html and related pages.

This commit is contained in:
Zed A. Shaw 2025-05-31 14:12:08 -04:00
parent d49e1fbdc0
commit c576a61fbe
7 changed files with 168 additions and 21 deletions

View 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