1+ CREATE TABLE `auth_api_keys ` (
2+ ` id` varchar (36 ) NOT NULL ,
3+ ` userId` varchar (15 ) NOT NULL ,
4+ ` createdAt` timestamp NOT NULL DEFAULT (now()),
5+ CONSTRAINT ` auth_api_keys_id` PRIMARY KEY (` id` ),
6+ CONSTRAINT ` auth_api_keys_id_unique` UNIQUE(` id` )
7+ );
8+ -- > statement-breakpoint
19RENAME TABLE ` space_invites` TO ` organization_invites` ;-- > statement-breakpoint
210RENAME TABLE ` space_members` TO ` organization_members` ;-- > statement-breakpoint
311RENAME TABLE ` spaces` TO ` organizations` ;-- > statement-breakpoint
@@ -19,11 +27,13 @@ ALTER TABLE `organizations` DROP PRIMARY KEY;--> statement-breakpoint
1927ALTER TABLE ` organization_invites` ADD PRIMARY KEY (` id` );-- > statement-breakpoint
2028ALTER TABLE ` organization_members` ADD PRIMARY KEY (` id` );-- > statement-breakpoint
2129ALTER TABLE ` organizations` ADD PRIMARY KEY (` id` );-- > statement-breakpoint
30+ ALTER TABLE ` organizations` ADD ` iconUrl` varchar (1024 );-- > statement-breakpoint
31+ ALTER TABLE ` videos` ADD ` password` text ;-- > statement-breakpoint
2232ALTER TABLE ` organization_invites` ADD CONSTRAINT ` organization_invites_id_unique` UNIQUE(` id` );-- > statement-breakpoint
2333ALTER TABLE ` organization_members` ADD CONSTRAINT ` organization_members_id_unique` UNIQUE(` id` );-- > statement-breakpoint
2434ALTER TABLE ` organizations` ADD CONSTRAINT ` organizations_id_unique` UNIQUE(` id` );-- > statement-breakpoint
2535CREATE INDEX `organization_id_idx ` ON ` shared_videos` (` organizationId` );-- > statement-breakpoint
2636CREATE INDEX `video_id_organization_id_idx ` ON ` shared_videos` (` videoId` ,` organizationId` );-- > statement-breakpoint
2737CREATE INDEX `organization_id_idx ` ON ` organization_invites` (` organizationId` );-- > statement-breakpoint
2838CREATE INDEX `organization_id_idx ` ON ` organization_members` (` organizationId` );-- > statement-breakpoint
29- CREATE INDEX `user_id_organization_id_idx ` ON ` organization_members` (` userId` ,` organizationId` );
39+ CREATE INDEX `user_id_organization_id_idx ` ON ` organization_members` (` userId` ,` organizationId` );
0 commit comments