Files
headplane/drizzle/0002_square_bloodstorm.sql
Aarnav Tale d2c4f5eb2b feat: completely overhaul the auth model
* Cookies are now encrypted JWTs (GHSA-wrqq-v7qw-r5w7)
* Authentication is stored in the SQLite database (auto-migrated)
* Session logic is much cleaner
2025-08-19 17:52:16 -04:00

9 lines
245 B
SQL

CREATE TABLE `users` (
`id` text PRIMARY KEY NOT NULL,
`sub` text NOT NULL,
`caps` integer DEFAULT 0 NOT NULL,
`onboarded` integer DEFAULT false NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `users_sub_unique` ON `users` (`sub`);