mirror of
https://github.com/beilunyang/moemail.git
synced 2026-09-06 15:56:36 +08:00
feat(sharing): add email and message sharing functionality
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE `email_share` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`email_id` text NOT NULL,
|
||||
`token` text NOT NULL,
|
||||
`created_at` integer NOT NULL,
|
||||
`expires_at` integer,
|
||||
`enabled` integer DEFAULT true NOT NULL,
|
||||
FOREIGN KEY (`email_id`) REFERENCES `email`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `email_share_token_unique` ON `email_share` (`token`);--> statement-breakpoint
|
||||
CREATE INDEX `email_share_email_id_idx` ON `email_share` (`email_id`);--> statement-breakpoint
|
||||
CREATE INDEX `email_share_token_idx` ON `email_share` (`token`);
|
||||
Reference in New Issue
Block a user