21 lines
365 B
SQL
21 lines
365 B
SQL
-- Up
|
|
CREATE TABLE channels (
|
|
"id" INTEGER PRIMARY KEY,
|
|
"name" TEXT NOT NULL,
|
|
"key" TEXT NOT NULL,
|
|
"live_at" TEXT,
|
|
"password" TEXT,
|
|
"user_uuid" TEXT
|
|
, "last_stream" TEXT);
|
|
|
|
CREATE TABLE signed_users (
|
|
"id" INTEGER PRIMARY KEY,
|
|
"uuid" TEXT NOT NULL,
|
|
"name" TEXT NOT NULL
|
|
);
|
|
|
|
-- Down
|
|
|
|
DROP TABLE channels;
|
|
DROP TABLE signed_users;
|