- Implemented live card image generation for user habits using canvas. - Created API endpoints for starting and managing live Discord sharing sessions. - Added tests for live Discord sharing to ensure functionality and reliability. - Introduced CSS styles for the live Discord sharing interface. - Enhanced error handling and state management for Discord message updates.
17 lines
485 B
SQL
17 lines
485 B
SQL
CREATE TABLE `live_discord_cards` (
|
|
`user_id` text PRIMARY KEY NOT NULL,
|
|
`channel_id` text NOT NULL,
|
|
`message_id` text,
|
|
`message_url` text,
|
|
`nonce` text NOT NULL,
|
|
`theme` text NOT NULL,
|
|
`status` text NOT NULL,
|
|
`image_hash` text,
|
|
`dirty` integer DEFAULT true NOT NULL,
|
|
`error` text,
|
|
`retry_at` integer,
|
|
`updated_at` integer NOT NULL,
|
|
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
DROP TABLE `live_cards`; |