mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
feat(api): ✨ Preliminary captcha support database tables
This commit is contained in:
parent
9d8c2e81e9
commit
a6159b9d55
6 changed files with 2167 additions and 0 deletions
6
drizzle/migrations/0026_neat_stranger.sql
Normal file
6
drizzle/migrations/0026_neat_stranger.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
CREATE TABLE IF NOT EXISTS "CaptchaChallenges" (
|
||||
"id" uuid PRIMARY KEY DEFAULT uuid_generate_v7() NOT NULL,
|
||||
"challenge" jsonb NOT NULL,
|
||||
"expires_at" timestamp(3) DEFAULT NOW() + INTERVAL '5 minutes',
|
||||
"created_at" timestamp(3) DEFAULT now() NOT NULL
|
||||
);
|
||||
2137
drizzle/migrations/meta/0026_snapshot.json
Normal file
2137
drizzle/migrations/meta/0026_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -183,6 +183,13 @@
|
|||
"when": 1718147685855,
|
||||
"tag": "0025_violet_susan_delgado",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 26,
|
||||
"version": "7",
|
||||
"when": 1718234302625,
|
||||
"tag": "0026_neat_stranger",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue