Do not tie tokens to a user app.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
CREATE TABLE tokens (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid (),
|
||||
app_id UUID NOT NULL CONSTRAINT fk_tokens_app REFERENCES user_apps (id) ON DELETE CASCADE,
|
||||
access_token_hash BYTEA NOT NULL UNIQUE CHECK (
|
||||
octet_length(access_token_hash) = 32
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user