feat: Implement username/password authentication and registration features

This commit is contained in:
beilunyang
2025-01-15 16:00:06 +08:00
parent 969d0ce334
commit 126a4cb948
24 changed files with 2643 additions and 67 deletions
+10
View File
@@ -0,0 +1,10 @@
CREATE TABLE `credential` (
`id` text PRIMARY KEY NOT NULL,
`userId` text NOT NULL,
`username` text NOT NULL,
`password` text NOT NULL,
`created_at` integer NOT NULL,
FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE UNIQUE INDEX `credential_username_unique` ON `credential` (`username`);