Skip to content

Commit d47a11b

Browse files
feat: user timezone (#17)
* Add timezone tracking and user timezone preferences * feat: improvements * feat: new status update --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent ef28f84 commit d47a11b

File tree

18 files changed

+3061
-293
lines changed

18 files changed

+3061
-293
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CREATE TABLE `user_timezone_history` (
2+
`id` text PRIMARY KEY NOT NULL,
3+
`user_id` text NOT NULL,
4+
`timezone` text NOT NULL,
5+
`created_at` integer NOT NULL,
6+
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
7+
);
8+
--> statement-breakpoint
9+
CREATE INDEX `user_timezone_history_user_id_index` ON `user_timezone_history` (`user_id`);--> statement-breakpoint
10+
CREATE INDEX `user_timezone_history_created_at_index` ON `user_timezone_history` (`created_at`);--> statement-breakpoint
11+
ALTER TABLE `status_update` ADD `timezone` text DEFAULT 'UTC' NOT NULL;--> statement-breakpoint
12+
ALTER TABLE `user` ADD `timezone` text DEFAULT 'UTC' NOT NULL;

0 commit comments

Comments
 (0)