Add device access token authentication
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE "devices"
|
||||
ADD COLUMN "token_hash" TEXT,
|
||||
ADD COLUMN "token_created_at" TIMESTAMP(3),
|
||||
ADD COLUMN "token_last_used_at" TIMESTAMP(3),
|
||||
ADD COLUMN "token_revoked_at" TIMESTAMP(3);
|
||||
|
||||
CREATE UNIQUE INDEX "devices_token_hash_key" ON "devices"("token_hash");
|
||||
Reference in New Issue
Block a user