Skip to content

Commit

Permalink
fixes related to messages, comments and naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
xoldd committed Jan 21, 2025
1 parent 3732dad commit 2fc5297
Show file tree
Hide file tree
Showing 142 changed files with 1,227 additions and 1,206 deletions.
4 changes: 2 additions & 2 deletions documentation/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ At runtime, talawa api requires certain environment variables to be defined in i

## API_ADMINISTRATOR_USER_EMAIL_ADDRESS

This environment variable is used to configure the email address for the administrator user that talawa-api will make sure exists in the database at the time of server startup.
This environment variable is used to configure the email address for the administrator user that talawa api will make sure exists in the database at the time of server startup.

## API_ADMINISTRATOR_USER_NAME

This environment variable is used to configure the name for the administrator user that talawa-api will make sure exists in the database at the time of server startup.

## API_ADMINISTRATOR_USER_PASSWORD

This environment variable is used to configure the password for the administrator user that talawa-api will make sure exists in the database at the time of server startup.
This environment variable is used to configure the password for the administrator user that talawa api will make sure exists in the database at the time of server startup.

## API_BASE_URL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ CREATE TABLE "comment_votes" (
"creator_id" uuid,
"id" uuid PRIMARY KEY NOT NULL,
"type" text NOT NULL,
"updated_at" timestamp (3) with time zone,
"updated_id" uuid
"updated_at" timestamp (3) with time zone
);
--> statement-breakpoint
CREATE TABLE "comments" (
Expand Down Expand Up @@ -290,8 +289,7 @@ CREATE TABLE "post_votes" (
"id" uuid PRIMARY KEY NOT NULL,
"post_id" uuid NOT NULL,
"type" text NOT NULL,
"updated_at" timestamp (3) with time zone,
"updated_id" uuid
"updated_at" timestamp (3) with time zone
);
--> statement-breakpoint
CREATE TABLE "posts" (
Expand Down Expand Up @@ -452,7 +450,6 @@ ALTER TABLE "chats" ADD CONSTRAINT "chats_organization_id_organizations_id_fk" F
ALTER TABLE "chats" ADD CONSTRAINT "chats_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "comment_votes" ADD CONSTRAINT "comment_votes_comment_id_comments_id_fk" FOREIGN KEY ("comment_id") REFERENCES "public"."comments"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "comment_votes" ADD CONSTRAINT "comment_votes_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "comment_votes" ADD CONSTRAINT "comment_votes_updated_id_users_id_fk" FOREIGN KEY ("updated_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "comments" ADD CONSTRAINT "comments_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "comments" ADD CONSTRAINT "comments_post_id_posts_id_fk" FOREIGN KEY ("post_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "communities" ADD CONSTRAINT "communities_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
Expand Down Expand Up @@ -494,7 +491,6 @@ ALTER TABLE "post_attachments" ADD CONSTRAINT "post_attachments_post_id_posts_id
ALTER TABLE "post_attachments" ADD CONSTRAINT "post_attachments_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "post_votes" ADD CONSTRAINT "post_votes_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "post_votes" ADD CONSTRAINT "post_votes_post_id_posts_id_fk" FOREIGN KEY ("post_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "post_votes" ADD CONSTRAINT "post_votes_updated_id_users_id_fk" FOREIGN KEY ("updated_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "posts" ADD CONSTRAINT "posts_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "posts" ADD CONSTRAINT "posts_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint
ALTER TABLE "posts" ADD CONSTRAINT "posts_updater_id_users_id_fk" FOREIGN KEY ("updater_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE cascade;--> statement-breakpoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "32df2a89-a895-4c5d-a4dc-cc8413ee818f",
"id": "8f027f04-270a-4d90-8653-683983016f02",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
Expand Down Expand Up @@ -1802,12 +1802,6 @@
"type": "timestamp (3) with time zone",
"primaryKey": false,
"notNull": false
},
"updated_id": {
"name": "updated_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
}
},
"indexes": {
Expand Down Expand Up @@ -1904,19 +1898,6 @@
],
"onDelete": "set null",
"onUpdate": "cascade"
},
"comment_votes_updated_id_users_id_fk": {
"name": "comment_votes_updated_id_users_id_fk",
"tableFrom": "comment_votes",
"tableTo": "users",
"columnsFrom": [
"updated_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -4274,12 +4255,6 @@
"type": "timestamp (3) with time zone",
"primaryKey": false,
"notNull": false
},
"updated_id": {
"name": "updated_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
}
},
"indexes": {
Expand Down Expand Up @@ -4376,19 +4351,6 @@
],
"onDelete": "cascade",
"onUpdate": "cascade"
},
"post_votes_updated_id_users_id_fk": {
"name": "post_votes_updated_id_users_id_fk",
"tableFrom": "post_votes",
"tableTo": "users",
"columnsFrom": [
"updated_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down
4 changes: 2 additions & 2 deletions drizzle_migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"idx": 0,
"version": "7",
"when": 1737212433966,
"tag": "20250118150033_needy_tigra",
"when": 1737489680166,
"tag": "20250121200120_melted_morlun",
"breakpoints": true
}
]
Expand Down
1 change: 1 addition & 0 deletions envFiles/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ CI=false
NODE_ENV=production

########## docker compose `api` container service ##########

API_GID=1000
API_UID=1000

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
"@biomejs/biome": "^1.9.4",
"@faker-js/faker": "^9.4.0",
"@swc/cli": "0.6.0",
"@swc/core": "^1.10.7",
"@swc/core": "^1.10.9",
"@types/node": "^22.10.7",
"@vitest/coverage-v8": "^3.0.2",
"@vitest/coverage-v8": "^3.0.3",
"drizzle-kit": "^0.30.2",
"drizzle-seed": "^0.3.0",
"gql.tada": "^1.8.10",
"lefthook": "^1.10.8",
"lefthook": "^1.10.10",
"mercurius-integration-testing": "^9.0.1",
"pino-pretty": "^13.0.0",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.2"
"vitest": "^3.0.3"
},
"engines": {
"node": "22.13.0"
Expand Down
Loading

0 comments on commit 2fc5297

Please sign in to comment.