CREATE TABLE `label` (
	`id` text PRIMARY KEY NOT NULL,
	`name` text NOT NULL,
	`createdAt` integer NOT NULL,
	`userId` text NOT NULL,
	FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE INDEX `labels_name_idx` ON `label` (`name`);--> statement-breakpoint
CREATE INDEX `labels_userId_idx` ON `label` (`userId`);--> statement-breakpoint
CREATE UNIQUE INDEX `label_userId_name_unique` ON `label` (`userId`,`name`);