Implement channels table.

This commit is contained in:
Kavin 2023-08-14 08:20:40 +01:00
parent e02644a45b
commit 8258468f7b
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F

View file

@ -10,4 +10,18 @@ DROP INDEX IF EXISTS users_id_idx;
CREATE INDEX IF NOT EXISTS username_idx ON users (username ASC); CREATE INDEX IF NOT EXISTS username_idx ON users (username ASC);
--rollback DROP INDEX IF EXISTS username_idx;
--rollback DROP TABLE IF EXISTS users; --rollback DROP TABLE IF EXISTS users;
CREATE TABLE IF NOT EXISTS channels (
uploader_id VARCHAR(24) NOT NULL,
uploader VARCHAR(100) NULL,
uploader_avatar VARCHAR(150) NULL,
verified BOOL NULL,
CONSTRAINT channels_pkey PRIMARY KEY (uploader_id)
);
CREATE INDEX IF NOT EXISTS channels_uploader_idx ON channels (uploader ASC);
--rollback DROP INDEX IF EXISTS channels_uploader_idx;
--rollback DROP TABLE IF EXISTS channels;