request messages should never be nullable
This commit is contained in:
parent
5e133beb9b
commit
66cdc74a4b
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ CREATE TABLE "request"
|
|||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
requested_by INTEGER NOT NULL UNIQUE,
|
||||
approved_by INTEGER UNIQUE,
|
||||
message TEXT,
|
||||
message TEXT NOT NULL,
|
||||
is_approved INTEGER NOT NULL,
|
||||
|
||||
FOREIGN KEY(requested_by) REFERENCES "user"(id),
|
||||
|
|
@ -62,7 +62,7 @@ CREATE TABLE "request_chat"
|
|||
requested_by INTEGER NOT NULL UNIQUE,
|
||||
requested_for INTEGER NOT NULL UNIQUE,
|
||||
approved_by INTEGER UNIQUE,
|
||||
message TEXT,
|
||||
message TEXT NOT NULL,
|
||||
is_approved INTEGER NOT NULL,
|
||||
|
||||
FOREIGN KEY(requested_by) REFERENCES "user"(id),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue