add blacklist model and refactor channel kind 43 43

This commit is contained in:
Ren Amamiya
2023-04-25 12:51:56 +07:00
parent cf26aa504e
commit 95e4a27b69
6 changed files with 96 additions and 32 deletions

View File

@@ -0,0 +1,11 @@
-- Add migration script here
-- create blacklist table
CREATE TABLE
blacklist (
id INTEGER NOT NULL PRIMARY KEY,
account_id INTEGER NOT NULL,
content TEXT NOT NULL UNIQUE,
status INTEGER NOT NULL DEFAULT 0,
kind INTEGER NOT NULL,
FOREIGN KEY (account_id) REFERENCES accounts (id)
);