mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-06 03:31:02 -06:00
[server] Fix schemas
This commit is contained in:
@@ -2,7 +2,7 @@ CREATE TABLE access_tokens(
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
expires TIMESTAMP NOT NULL,
|
||||
user_id TEXT NOT NULL REFERENCES users(id) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
user_id INT NOT NULL REFERENCES users(id) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
);
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
CREATE TABLE bookmarks(
|
||||
user_id TEXT NOT NULL REFERENCES users(id),
|
||||
user_id INT NOT NULL REFERENCES users(id),
|
||||
resource_id UUID NOT NULL REFERENCES resources(id),
|
||||
name TEXT NOT NULL,
|
||||
dir BOOLEAN NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user