Skip to content

Commit 24804c3

Browse files
Added alloted hours data in sample data for actionItems
Signed-off-by: NishantSinghhhhh <[email protected]>
1 parent fa3373a commit 24804c3

File tree

3 files changed

+171
-6
lines changed

3 files changed

+171
-6
lines changed

drizzle_migrations/20250406144036_curious_rattler.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE TABLE "action_categories" (
1212
--> statement-breakpoint
1313
CREATE TABLE "actions" (
1414
"assigned_at" timestamp (3) with time zone NOT NULL,
15-
"actor_id" uuid,
15+
"assigneeId" uuid,
1616
"category_id" uuid,
1717
"completion_at" timestamp (3) with time zone,
1818
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
@@ -440,7 +440,7 @@ CREATE TABLE "volunteer_groups" (
440440
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
441441
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
442442
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
443-
ALTER TABLE "actions" ADD CONSTRAINT "actions_actor_id_users_id_fk" FOREIGN KEY ("actor_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
443+
ALTER TABLE "actions" ADD CONSTRAINT "actions_assigneeId_users_id_fk" FOREIGN KEY ("assigneeId") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
444444
ALTER TABLE "actions" ADD CONSTRAINT "actions_category_id_action_categories_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."action_categories"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
445445
ALTER TABLE "actions" ADD CONSTRAINT "actions_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
446446
ALTER TABLE "actions" ADD CONSTRAINT "actions_event_id_events_id_fk" FOREIGN KEY ("event_id") REFERENCES "public"."events"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
@@ -554,7 +554,7 @@ CREATE INDEX "action_categories_creator_id_index" ON "action_categories" USING b
554554
CREATE INDEX "action_categories_name_index" ON "action_categories" USING btree ("name");--> statement-breakpoint
555555
CREATE UNIQUE INDEX "action_categories_name_organization_id_index" ON "action_categories" USING btree ("name","organization_id");--> statement-breakpoint
556556
CREATE INDEX "actions_assigned_at_index" ON "actions" USING btree ("assigned_at");--> statement-breakpoint
557-
CREATE INDEX "actions_actor_id_index" ON "actions" USING btree ("actor_id");--> statement-breakpoint
557+
CREATE INDEX "actions_assigneeId_index" ON "actions" USING btree ("assigneeId");--> statement-breakpoint
558558
CREATE INDEX "actions_category_id_index" ON "actions" USING btree ("category_id");--> statement-breakpoint
559559
CREATE INDEX "actions_completion_at_index" ON "actions" USING btree ("completion_at");--> statement-breakpoint
560560
CREATE INDEX "actions_created_at_index" ON "actions" USING btree ("created_at");--> statement-breakpoint

drizzle_migrations/20250418120528_remarkable_molecule_man.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE TABLE "action_categories" (
1212
--> statement-breakpoint
1313
CREATE TABLE "actions" (
1414
"assigned_at" timestamp (3) with time zone NOT NULL,
15-
"actor_id" uuid,
15+
"assigneeId" uuid,
1616
"category_id" uuid,
1717
"completion_at" timestamp (3) with time zone,
1818
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
@@ -30,7 +30,7 @@ CREATE TABLE "actions" (
3030
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
3131
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
3232
ALTER TABLE "action_categories" ADD CONSTRAINT "action_categories_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
33-
ALTER TABLE "actions" ADD CONSTRAINT "actions_actor_id_users_id_fk" FOREIGN KEY ("actor_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
33+
ALTER TABLE "actions" ADD CONSTRAINT "actions_assigneeId_users_id_fk" FOREIGN KEY ("actor_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
3434
ALTER TABLE "actions" ADD CONSTRAINT "actions_category_id_action_categories_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."action_categories"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
3535
ALTER TABLE "actions" ADD CONSTRAINT "actions_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
3636
ALTER TABLE "actions" ADD CONSTRAINT "actions_event_id_events_id_fk" FOREIGN KEY ("event_id") REFERENCES "public"."events"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
@@ -41,7 +41,7 @@ CREATE INDEX "action_categories_creator_id_index" ON "action_categories" USING b
4141
CREATE INDEX "action_categories_name_index" ON "action_categories" USING btree ("name");--> statement-breakpoint
4242
CREATE UNIQUE INDEX "action_categories_name_organization_id_index" ON "action_categories" USING btree ("name","organization_id");--> statement-breakpoint
4343
CREATE INDEX "actions_assigned_at_index" ON "actions" USING btree ("assigned_at");--> statement-breakpoint
44-
CREATE INDEX "actions_actor_id_index" ON "actions" USING btree ("actor_id");--> statement-breakpoint
44+
CREATE INDEX "actions_assigneeId_index" ON "actions" USING btree ("actor_id");--> statement-breakpoint
4545
CREATE INDEX "actions_category_id_index" ON "actions" USING btree ("category_id");--> statement-breakpoint
4646
CREATE INDEX "actions_completion_at_index" ON "actions" USING btree ("completion_at");--> statement-breakpoint
4747
CREATE INDEX "actions_created_at_index" ON "actions" USING btree ("created_at");--> statement-breakpoint

0 commit comments

Comments
 (0)