CREATE TABLE `guest_copy` (
	`restaurant_id` text NOT NULL,
	`locale` text NOT NULL,
	`key` text NOT NULL,
	`value` text NOT NULL,
	`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
	PRIMARY KEY (`restaurant_id`, `locale`, `key`),
	FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE INDEX `idx_guest_copy_restaurant_locale` ON `guest_copy` (`restaurant_id`,`locale`);
--> statement-breakpoint
PRAGMA optimize;
