blob: c557425b3004c46657435d648b26dbfc77b1ef6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
CREATE TABLE `passwordResetToken` (
`id` text PRIMARY KEY NOT NULL,
`userId` text NOT NULL,
`token` text NOT NULL,
`expires` integer NOT NULL,
`createdAt` integer NOT NULL,
FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE UNIQUE INDEX `passwordResetToken_token_unique` ON `passwordResetToken` (`token`);--> statement-breakpoint
CREATE INDEX `passwordResetTokens_userId_idx` ON `passwordResetToken` (`userId`);
|