Skip to content

Added mutations for action Item Category #3432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
996dc79
Added mutations for action Item Category
NishantSinghhhhh Apr 6, 2025
5c86d3b
Merge branch 'develop-postgres' into ActionItemCategory
NishantSinghhhhh Apr 7, 2025
75d910e
Added tests
NishantSinghhhhh Apr 7, 2025
04eba4f
Added test for createAction Item Category
NishantSinghhhhh Apr 9, 2025
0bb9e11
rabbits changes
NishantSinghhhhh Apr 9, 2025
c123acb
rabbits changes
NishantSinghhhhh Apr 9, 2025
0a07f4f
rabbits changes
NishantSinghhhhh Apr 9, 2025
5858194
rabbits changes
NishantSinghhhhh Apr 9, 2025
3645672
Merge branch 'develop-postgres' into ActionItemCategory
NishantSinghhhhh Apr 10, 2025
3372bd2
Created an input type for createActionItem
NishantSinghhhhh Apr 10, 2025
f689e29
Created an input type for createActionItem
NishantSinghhhhh Apr 10, 2025
cc2e986
Created an input type for createActionItem
NishantSinghhhhh Apr 10, 2025
9e3bb02
Created an input type for createActionItem
NishantSinghhhhh Apr 10, 2025
b03f5c2
Added types for 2 mutations and edited 1 mutation named createActionI…
NishantSinghhhhh Apr 10, 2025
040fef1
Merge branch 'develop-postgres' into ActionItemCategory
NishantSinghhhhh Apr 12, 2025
0143f00
changed files
NishantSinghhhhh Apr 14, 2025
ce056bc
Addedd changes
NishantSinghhhhh Apr 16, 2025
4889eeb
Merge branch 'ActionItemCategory' of https://github.com/NishantSinghh…
NishantSinghhhhh Apr 16, 2025
255c319
Added changes
NishantSinghhhhh Apr 18, 2025
6e3ce55
Added changes
NishantSinghhhhh Apr 18, 2025
8ffa4f0
Added changes
NishantSinghhhhh Apr 18, 2025
5ce99b4
Added changes
NishantSinghhhhh Apr 18, 2025
0ac4781
Added changes
NishantSinghhhhh Apr 18, 2025
4efeea4
Added changes
NishantSinghhhhh Apr 18, 2025
66de1bd
Added changes
NishantSinghhhhh Apr 18, 2025
e736e0a
Added changes
NishantSinghhhhh Apr 18, 2025
a2d07f1
Added changes
NishantSinghhhhh Apr 18, 2025
eaa3b9f
Added tests
NishantSinghhhhh Apr 18, 2025
56b290c
Added tests
NishantSinghhhhh Apr 18, 2025
00646cd
Added tests
NishantSinghhhhh Apr 18, 2025
b6d8ade
Added tests
NishantSinghhhhh Apr 18, 2025
335a92d
Added tests
NishantSinghhhhh Apr 18, 2025
1f96ef2
Added tests
NishantSinghhhhh Apr 18, 2025
95fdf64
Merge branch 'develop-postgres' into ActionItemCategory
NishantSinghhhhh Apr 18, 2025
267bb0c
Added tests
NishantSinghhhhh Apr 18, 2025
86c83e4
Added tests
NishantSinghhhhh Apr 18, 2025
6127a9a
Added tests
NishantSinghhhhh Apr 18, 2025
31b85f0
Added tests
NishantSinghhhhh Apr 18, 2025
8d5649d
Added tests
NishantSinghhhhh Apr 18, 2025
43ce3ff
Added tests
NishantSinghhhhh Apr 18, 2025
0b7b030
Added tests
NishantSinghhhhh Apr 18, 2025
a473043
Added alloted hours
NishantSinghhhhh Apr 21, 2025
b918f6d
Added changes
NishantSinghhhhh Apr 21, 2025
42610e6
Merge branch 'develop-postgres' into ActionItemCategory
NishantSinghhhhh Apr 21, 2025
9f8d528
Added changes
NishantSinghhhhh Apr 22, 2025
8fb5aa8
'Merge branch 'ActionItemCategory' of https://github.com/NishantSingh…
NishantSinghhhhh Apr 22, 2025
f1b412c
removed type errors
NishantSinghhhhh Apr 22, 2025
0eb60de
removed type errors
NishantSinghhhhh Apr 22, 2025
d8a85ca
removed type errors
NishantSinghhhhh Apr 22, 2025
fa3373a
changed names of tables
NishantSinghhhhh Apr 22, 2025
24804c3
Added alloted hours data in sample data for actionItems
NishantSinghhhhh Apr 22, 2025
c5a75eb
Added alloted hours data in sample data for actionItems
NishantSinghhhhh Apr 22, 2025
280ed54
Added alloted hours data in sample data for actionItems
NishantSinghhhhh Apr 22, 2025
a0ea106
Added changes in table
NishantSinghhhhh Apr 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drizzle_migrations/20250418120210_lean_medusa.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE "action_categories" CASCADE;--> statement-breakpoint
DROP TABLE "actions" CASCADE;
49 changes: 49 additions & 0 deletions drizzle_migrations/20250418120528_remarkable_molecule_man.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
CREATE TABLE "action_categories" (
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
"creator_id" uuid,
"description" text,
"id" uuid PRIMARY KEY NOT NULL,
"is_disabled" boolean NOT NULL,
"name" text NOT NULL,
"organization_id" uuid NOT NULL,
"updated_at" timestamp (3) with time zone,
"updater_id" uuid
);
--> statement-breakpoint
CREATE TABLE "actions" (
"assigned_at" timestamp (3) with time zone NOT NULL,
"actor_id" uuid,
"category_id" uuid,
"completion_at" timestamp (3) with time zone,
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
"creator_id" uuid,
"event_id" uuid,
"id" uuid PRIMARY KEY NOT NULL,
"is_completed" boolean NOT NULL,
"organization_id" uuid NOT NULL,
"post_completion_notes" text,
"pre_completion_notes" text,
"updated_at" timestamp (3) with time zone,
"updater_id" uuid
);
--> statement-breakpoint
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
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
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
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
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
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
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
ALTER TABLE "actions" ADD CONSTRAINT "actions_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "actions" ADD CONSTRAINT "actions_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
CREATE INDEX "action_categories_created_at_index" ON "action_categories" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "action_categories_creator_id_index" ON "action_categories" USING btree ("creator_id");--> statement-breakpoint
CREATE INDEX "action_categories_name_index" ON "action_categories" USING btree ("name");--> statement-breakpoint
CREATE UNIQUE INDEX "action_categories_name_organization_id_index" ON "action_categories" USING btree ("name","organization_id");--> statement-breakpoint
CREATE INDEX "actions_assigned_at_index" ON "actions" USING btree ("assigned_at");--> statement-breakpoint
CREATE INDEX "actions_actor_id_index" ON "actions" USING btree ("actor_id");--> statement-breakpoint
CREATE INDEX "actions_category_id_index" ON "actions" USING btree ("category_id");--> statement-breakpoint
CREATE INDEX "actions_completion_at_index" ON "actions" USING btree ("completion_at");--> statement-breakpoint
CREATE INDEX "actions_created_at_index" ON "actions" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "actions_creator_id_index" ON "actions" USING btree ("creator_id");--> statement-breakpoint
CREATE INDEX "actions_organization_id_index" ON "actions" USING btree ("organization_id");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "actions" ADD COLUMN "allotted_hours" numeric;
1 change: 1 addition & 0 deletions drizzle_migrations/20250421211316_careless_arachne.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "actions" ALTER COLUMN "allotted_hours" SET NOT NULL;
1 change: 1 addition & 0 deletions drizzle_migrations/20250421211939_chubby_redwing.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "actions" ALTER COLUMN "allotted_hours" DROP NOT NULL;
2 changes: 2 additions & 0 deletions drizzle_migrations/20250422113008_fast_prism.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE "action_categories" CASCADE;--> statement-breakpoint
DROP TABLE "actions" CASCADE;
50 changes: 50 additions & 0 deletions drizzle_migrations/20250422113209_common_la_nuit.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
CREATE TABLE "action_categories" (
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
"creator_id" uuid,
"description" text,
"id" uuid PRIMARY KEY NOT NULL,
"is_disabled" boolean NOT NULL,
"name" text NOT NULL,
"organization_id" uuid NOT NULL,
"updated_at" timestamp (3) with time zone,
"updater_id" uuid
);
--> statement-breakpoint
CREATE TABLE "actions" (
"assigned_at" timestamp (3) with time zone NOT NULL,
"actor_id" uuid,
"category_id" uuid,
"completion_at" timestamp (3) with time zone,
"created_at" timestamp (3) with time zone DEFAULT now() NOT NULL,
"creator_id" uuid,
"event_id" uuid,
"id" uuid PRIMARY KEY NOT NULL,
"is_completed" boolean NOT NULL,
"allotted_hours" numeric,
"organization_id" uuid NOT NULL,
"post_completion_notes" text,
"pre_completion_notes" text,
"updated_at" timestamp (3) with time zone,
"updater_id" uuid
);
--> statement-breakpoint
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
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
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
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
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
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
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
ALTER TABLE "actions" ADD CONSTRAINT "actions_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "actions" ADD CONSTRAINT "actions_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
CREATE INDEX "action_categories_created_at_index" ON "action_categories" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "action_categories_creator_id_index" ON "action_categories" USING btree ("creator_id");--> statement-breakpoint
CREATE INDEX "action_categories_name_index" ON "action_categories" USING btree ("name");--> statement-breakpoint
CREATE UNIQUE INDEX "action_categories_name_organization_id_index" ON "action_categories" USING btree ("name","organization_id");--> statement-breakpoint
CREATE INDEX "actions_assigned_at_index" ON "actions" USING btree ("assigned_at");--> statement-breakpoint
CREATE INDEX "actions_actor_id_index" ON "actions" USING btree ("actor_id");--> statement-breakpoint
CREATE INDEX "actions_category_id_index" ON "actions" USING btree ("category_id");--> statement-breakpoint
CREATE INDEX "actions_completion_at_index" ON "actions" USING btree ("completion_at");--> statement-breakpoint
CREATE INDEX "actions_created_at_index" ON "actions" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "actions_creator_id_index" ON "actions" USING btree ("creator_id");--> statement-breakpoint
CREATE INDEX "actions_organization_id_index" ON "actions" USING btree ("organization_id");
Loading
Loading