chore: add pnpm workspace configuration with package definitions and overrides
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
CREATE TABLE `team` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`organization_id` text NOT NULL,
|
||||
`created_at` integer NOT NULL,
|
||||
`updated_at` integer,
|
||||
`description` text,
|
||||
FOREIGN KEY (`organization_id`) REFERENCES `organization`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `team_organizationId_idx` ON `team` (`organization_id`);--> statement-breakpoint
|
||||
CREATE TABLE `team_member` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`team_id` text NOT NULL,
|
||||
`user_id` text NOT NULL,
|
||||
`created_at` integer,
|
||||
FOREIGN KEY (`team_id`) REFERENCES `team`(`id`) ON UPDATE no action ON DELETE cascade,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `teamMember_teamId_idx` ON `team_member` (`team_id`);--> statement-breakpoint
|
||||
CREATE INDEX `teamMember_userId_idx` ON `team_member` (`user_id`);--> statement-breakpoint
|
||||
ALTER TABLE `invitation` ADD `team_id` text;--> statement-breakpoint
|
||||
ALTER TABLE `session` ADD `active_team_id` text;--> statement-breakpoint
|
||||
ALTER TABLE `user` ADD `job_title` text;--> statement-breakpoint
|
||||
ALTER TABLE `user` ADD `phone` text;
|
||||
Reference in New Issue
Block a user