Skip to content

Commit

Permalink
Husky automation (#3219)
Browse files Browse the repository at this point in the history
* Adding scripts to generate sidebar.ts

* resolving errors

* fixing lint issue

* fixing linting issues

* test

* Addressing coderabbit comments

* syncing pnpm-lock with package.json

* pnpm lock file sync

* updating package.json

* updating package.json and pnpm-lock.yaml

* fixing lint

* updating naming of dir schema to auto-schema

* fixing script in package.json

* Adding docs to /auto-schema

* resolving conflicts

* test commit

* test

* resolving conflict

* resolving conflicts

* resolving conflicts

* resolving conflicts

* resolving conflicts

* resolving conflicts

* resolving conflict

* resolving pnpm conflict

* formatting files

* fixing formatting

* adding schema category to sidebars.ts

* fixing code quality

* minor fix

* fixing test

* fix test

* fix-code-quality

* fixing tests

* adding suggestions from code rabbit

* fixing code_quality

* test commit

* test commit

* minor change

* Adding typedoc and typedoc-markdown-plugin

* Adding the doc generate script to lefthook.yml

* Adding the doc generate script to lefthook.yml

* generating docs

* updating lefthook

* resolving errors

* generating updated pnpm-lock

* generating docs

* test commit

* test commit

* test commit

* test commit

---------

Co-authored-by: Peter Harrison <16875803+palisadoes@users.noreply.github.com>
  • Loading branch information
Suyash878 and palisadoes authored Mar 2, 2025
1 parent bb75fdd commit 557cbbe
Show file tree
Hide file tree
Showing 428 changed files with 7,028 additions and 1,884 deletions.
25 changes: 25 additions & 0 deletions docs/docs/docs/auto-schema/createServer/functions/createServer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[Admin Docs](/)

***

# Function: createServer()

> **createServer**(`options`?): `Promise`\<`FastifyInstance`\<`Server`\<*typeof* `IncomingMessage`, *typeof* `ServerResponse`\>, `IncomingMessage`, `ServerResponse`\<`IncomingMessage`\>, `FastifyBaseLogger`, `TypeBoxTypeProvider`\>\>
Defined in: [src/createServer.ts:29](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/createServer.ts#L29)

This function is used to set up the fastify server.

## Parameters

### options?

#### envConfig?

`Partial`\<\{ `API_ADMINISTRATOR_USER_EMAIL_ADDRESS`: `string`; `API_ADMINISTRATOR_USER_NAME`: `string`; `API_ADMINISTRATOR_USER_PASSWORD`: `string`; `API_BASE_URL`: `string`; `API_COMMUNITY_FACEBOOK_URL`: `string`; `API_COMMUNITY_GITHUB_URL`: `string`; `API_COMMUNITY_INACTIVITY_TIMEOUT_DURATION`: `number`; `API_COMMUNITY_INSTAGRAM_URL`: `string`; `API_COMMUNITY_LINKEDIN_URL`: `string`; `API_COMMUNITY_NAME`: `string`; `API_COMMUNITY_REDDIT_URL`: `string`; `API_COMMUNITY_SLACK_URL`: `string`; `API_COMMUNITY_WEBSITE_URL`: `string`; `API_COMMUNITY_X_URL`: `string`; `API_COMMUNITY_YOUTUBE_URL`: `string`; `API_HOST`: `string`; `API_IS_APPLY_DRIZZLE_MIGRATIONS`: `boolean`; `API_IS_GRAPHIQL`: `boolean`; `API_IS_PINO_PRETTY`: `boolean`; `API_JWT_EXPIRES_IN`: `number`; `API_JWT_SECRET`: `string`; `API_LOG_LEVEL`: `"debug"` \| `"error"` \| `"fatal"` \| `"info"` \| `"trace"` \| `"warn"`; `API_MINIO_ACCESS_KEY`: `string`; `API_MINIO_END_POINT`: `string`; `API_MINIO_PORT`: `number`; `API_MINIO_SECRET_KEY`: `string`; `API_MINIO_USE_SSL`: `boolean`; `API_PORT`: `number`; `API_POSTGRES_DATABASE`: `string`; `API_POSTGRES_HOST`: `string`; `API_POSTGRES_PASSWORD`: `string`; `API_POSTGRES_PORT`: `number`; `API_POSTGRES_SSL_MODE`: `boolean` \| `"allow"` \| `"prefer"` \| `"require"` \| `"verify-full"`; `API_POSTGRES_USER`: `string`; `MINIO_ROOT_USER`: `string`; \}\>

Optional custom configuration environment variables that would merge or override the default configuration environment variables used by talawa api.

## Returns

`Promise`\<`FastifyInstance`\<`Server`\<*typeof* `IncomingMessage`, *typeof* `ServerResponse`\>, `IncomingMessage`, `ServerResponse`\<`IncomingMessage`\>, `FastifyBaseLogger`, `TypeBoxTypeProvider`\>\>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: advertisementAttachmentMimeTypeEnum

> `const` **advertisementAttachmentMimeTypeEnum**: `ZodEnum`\<\[`"image/avif"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`, `"video/mp4"`, `"video/webm"`\]\>
Defined in: [src/drizzle/enums/advertisementAttachmentMimeType.ts:8](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/advertisementAttachmentMimeType.ts#L8)

Possible variants of the type of an attachement of an advertisement.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: advertisementTypeEnum

> `const` **advertisementTypeEnum**: `ZodEnum`\<\[`"banner"`, `"menu"`, `"pop_up"`\]\>
Defined in: [src/drizzle/enums/advertisementType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/advertisementType.ts#L6)

Possible variants of the type of an advertisement.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: agendaItemTypeEnum

> `const` **agendaItemTypeEnum**: `ZodEnum`\<\[`"general"`, `"note"`, `"scripture"`, `"song"`\]\>
Defined in: [src/drizzle/enums/agendaItemType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/agendaItemType.ts#L6)

Possible variants of the type of an agenda item.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: chatMembershipRoleEnum

> `const` **chatMembershipRoleEnum**: `ZodEnum`\<\[`"administrator"`, `"regular"`\]\>
Defined in: [src/drizzle/enums/chatMembershipRole.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/chatMembershipRole.ts#L6)

Possible variants of the role assigned to a user within a chat.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: commentVoteTypeEnum

> `const` **commentVoteTypeEnum**: `ZodEnum`\<\[`"down_vote"`, `"up_vote"`\]\>
Defined in: [src/drizzle/enums/commentVoteType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/commentVoteType.ts#L6)

Possible variants of the type of of a vote on a comment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: eventAttachmentMimeTypeEnum

> `const` **eventAttachmentMimeTypeEnum**: `ZodEnum`\<\[`"image/avif"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`, `"video/mp4"`, `"video/webm"`\]\>
Defined in: [src/drizzle/enums/eventAttachmentMimeType.ts:8](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/eventAttachmentMimeType.ts#L8)

Possible variants of the type of an attachement of an event.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: familyMembershipRoleEnum

> `const` **familyMembershipRoleEnum**: `ZodEnum`\<\[`"adult"`, `"child"`, `"head_of_household"`, `"spouse"`\]\>
Defined in: [src/drizzle/enums/familyMembershipRole.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/familyMembershipRole.ts#L6)

Possible variants of the role of a user in a family(if applicable).
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: imageMimeTypeEnum

> `const` **imageMimeTypeEnum**: `ZodEnum`\<\[`"image/avif"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`\]\>
Defined in: [src/drizzle/enums/imageMimeType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/imageMimeType.ts#L6)

Possible variants of the type of an image.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: iso3166Alpha2CountryCodeEnum

> `const` **iso3166Alpha2CountryCodeEnum**: `ZodEnum`\<\[`"ad"`, `"ae"`, `"af"`, `"ag"`, `"ai"`, `"al"`, `"am"`, `"ao"`, `"aq"`, `"ar"`, `"as"`, `"at"`, `"au"`, `"aw"`, `"ax"`, `"az"`, `"ba"`, `"bb"`, `"bd"`, `"be"`, `"bf"`, `"bg"`, `"bh"`, `"bi"`, `"bj"`, `"bl"`, `"bm"`, `"bn"`, `"bo"`\]\>
Defined in: [src/drizzle/enums/iso3166Alpha2CountryCode.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/iso3166Alpha2CountryCode.ts#L6)

Possible variants of the two-letter country code defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. More information at this link: [https://en.wikipedia.org/wiki/List\_of\_ISO\_3166\_country\_codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: iso4217CurrencyCodeEnum

> `const` **iso4217CurrencyCodeEnum**: `ZodEnum`\<\[`"AED"`, `"AFN"`, `"ALL"`, `"AMD"`, `"ANG"`, `"AOA"`, `"ARS"`, `"AUD"`, `"AWG"`, `"AZN"`, `"BAM"`, `"BBD"`, `"BDT"`, `"BGN"`, `"BHD"`, `"BIF"`, `"BMD"`, `"BND"`, `"BOB"`, `"BOV"`, `"BRL"`, `"BSD"`, `"BTN"`, `"BWP"`, `"BYN"`\]\>
Defined in: [src/drizzle/enums/iso4217CurrencyCode.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/iso4217CurrencyCode.ts#L6)

Possible variants of the currency code defined in ISO 4217 standard published by the International Organization for Standardization (ISO) which defines alpha codes and numeric codes for the representation of currencies and provides information about the relationships between individual currencies and their minor units. More information at this link: [https://en.wikipedia.org/wiki/ISO\_4217#Active\_codes\_(list\_one)](https://en.wikipedia.org/wiki/ISO_4217#Active_codes_(list_one)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: iso639Set1LanguageCodeEnum

> `const` **iso639Set1LanguageCodeEnum**: `ZodEnum`\<\[`"aa"`, `"ab"`, `"ae"`, `"af"`, `"ak"`, `"am"`, `"an"`, `"ar"`, `"as"`, `"av"`, `"ay"`, `"az"`, `"ba"`, `"be"`, `"bg"`, `"bi"`, `"bm"`, `"bn"`, `"bo"`, `"br"`, `"bs"`, `"ca"`, `"ce"`, `"ch"`, `"co"`, `"cr"`, `"cs"`, `"cu"`, `"cv"`\]\>
Defined in: [src/drizzle/enums/iso639Set1LanguageCode.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/iso639Set1LanguageCode.ts#L6)

Possible variants of the two-letter language code defined in ISO 639-1, part of the ISO 639 standard published by the International Organization for Standardization (ISO), to represent natural languages. More information at this link: [https://en.wikipedia.org/wiki/List\_of\_ISO\_639\_language\_codes](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: organizationMembershipRoleEnum

> `const` **organizationMembershipRoleEnum**: `ZodEnum`\<\[`"administrator"`, `"regular"`\]\>
Defined in: [src/drizzle/enums/organizationMembershipRole.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/organizationMembershipRole.ts#L6)

Possible variants of the role assigned to a user within an organization.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: postAttachmentMimeTypeEnum

> `const` **postAttachmentMimeTypeEnum**: `ZodEnum`\<\[`"image/avif"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`, `"video/mp4"`, `"video/webm"`\]\>
Defined in: [src/drizzle/enums/postAttachmentMimeType.ts:8](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/postAttachmentMimeType.ts#L8)

Possible variants of the type of an attachement of a post.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: postVoteTypeEnum

> `const` **postVoteTypeEnum**: `ZodEnum`\<\[`"down_vote"`, `"up_vote"`\]\>
Defined in: [src/drizzle/enums/postVoteType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/postVoteType.ts#L6)

Possible variants of the type of a vote on a post.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: userEducationGradeEnum

> `const` **userEducationGradeEnum**: `ZodEnum`\<\[`"grade_1"`, `"grade_2"`, `"grade_3"`, `"grade_4"`, `"grade_5"`, `"grade_6"`, `"grade_7"`, `"grade_8"`, `"grade_9"`, `"grade_10"`, `"grade_11"`, `"grade_12"`, `"graduate"`, `"kg"`, `"no_grade"`, `"pre_kg"`\]\>
Defined in: [src/drizzle/enums/userEducationGrade.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/userEducationGrade.ts#L6)

Possible variants of the education grade(if applicable) of a user.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: userEmploymentStatusEnum

> `const` **userEmploymentStatusEnum**: `ZodEnum`\<\[`"full_time"`, `"part_time"`, `"unemployed"`\]\>
Defined in: [src/drizzle/enums/userEmploymentStatus.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/userEmploymentStatus.ts#L6)

Possible variants of the employment status(if applicable) of a user.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: userMaritalStatusEnum

> `const` **userMaritalStatusEnum**: `ZodEnum`\<\[`"divorced"`, `"engaged"`, `"married"`, `"seperated"`, `"single"`, `"widowed"`\]\>
Defined in: [src/drizzle/enums/userMaritalStatus.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/userMaritalStatus.ts#L6)

Possible variants of the martial status(if applicable) of a user.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: userNatalSexEnum

> `const` **userNatalSexEnum**: `ZodEnum`\<\[`"female"`, `"intersex"`, `"male"`\]\>
Defined in: [src/drizzle/enums/userNatalSex.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/userNatalSex.ts#L6)

Possible variants of the sex assigned to a user at birth.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: userRoleEnum

> `const` **userRoleEnum**: `ZodEnum`\<\[`"administrator"`, `"regular"`\]\>
Defined in: [src/drizzle/enums/userRole.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/userRole.ts#L6)

Possible variants of the role assigned to a user.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: venueAttachmentMimeTypeEnum

> `const` **venueAttachmentMimeTypeEnum**: `ZodEnum`\<\[`"image/avif"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`, `"video/mp4"`, `"video/webm"`\]\>
Defined in: [src/drizzle/enums/venueAttachmentMimeType.ts:8](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/venueAttachmentMimeType.ts#L8)

Possible variants of the type of an attachement of an event venue.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: videoMimeTypeEnum

> `const` **videoMimeTypeEnum**: `ZodEnum`\<\[`"video/mp4"`, `"video/webm"`\]\>
Defined in: [src/drizzle/enums/videoMimeType.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/videoMimeType.ts#L6)

Possible variants of the type of a video.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: volunteerGroupAssignmentInviteStatusEnum

> `const` **volunteerGroupAssignmentInviteStatusEnum**: `ZodEnum`\<\[`"accepted"`, `"declined"`, `"no_response"`\]\>
Defined in: [src/drizzle/enums/volunteerGroupAssignmentInviteStatus.ts:6](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/enums/volunteerGroupAssignmentInviteStatus.ts#L6)

Possible variants of the status of the assignment of a user in an event's volunteer group.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: actionCategoriesTable

> `const` **actionCategoriesTable**: `PgTableWithColumns`\<\{\}\>
Defined in: [src/drizzle/tables/actionCategories.ts:16](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/actionCategories.ts#L16)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: actionCategoriesTableRelations

> `const` **actionCategoriesTableRelations**: `Relations`\<`"action_categories"`, \{ `actionsWhereCategory`: `Many`\<`"actions"`\>; `creator`: `One`\<`"users"`, `false`\>; `organization`: `One`\<`"organizations"`, `true`\>; `updater`: `One`\<`"users"`, `false`\>; \}\>
Defined in: [src/drizzle/tables/actionCategories.ts:68](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/actionCategories.ts#L68)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: actionsTable

> `const` **actionsTable**: `PgTableWithColumns`\<\{\}\>
Defined in: [src/drizzle/tables/actions.ts:16](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/actions.ts#L16)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: actionsTableRelations

> `const` **actionsTableRelations**: `Relations`\<`"actions"`, \{ `assignee`: `One`\<`"users"`, `false`\>; `category`: `One`\<`"action_categories"`, `false`\>; `creator`: `One`\<`"users"`, `false`\>; `event`: `One`\<`"events"`, `false`\>; `organization`: `One`\<`"organizations"`, `true`\>; `updater`: `One`\<`"users"`, `false`\>; \}\>
Defined in: [src/drizzle/tables/actions.ts:98](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/actions.ts#L98)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: advertisementAttachmentsTable

> `const` **advertisementAttachmentsTable**: `PgTableWithColumns`\<\{\}\>
Defined in: [src/drizzle/tables/advertisementAttachments.ts:11](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisementAttachments.ts#L11)

Drizzle orm postgres table definition for advertisement attachments.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: advertisementAttachmentsTableInsertSchema

> `const` **advertisementAttachmentsTableInsertSchema**: `BuildSchema`\<`"insert"`, \{ `advertisementId`: `PgColumn`\<\{\}, \{\}, \{\}\>; `createdAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `creatorId`: `PgColumn`\<\{\}, \{\}, \{\}\>; `mimeType`: `PgColumn`\<\{\}, \{\}, \{\}\>; `name`: `PgColumn`\<\{\}, \{\}, \{\}\>; `updatedAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `updaterId`: `PgColumn`\<\{\}, \{\}, \{\}\>; \}, \{ `name`: (`schema`) => `ZodArray`\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<ZodArray\<..., "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, "many"\>, `"many"`\>; \}\>
Defined in: [src/drizzle/tables/advertisementAttachments.ts:106](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisementAttachments.ts#L106)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: advertisementAttachmentsTableRelations

> `const` **advertisementAttachmentsTableRelations**: `Relations`\<`"advertisement_attachments"`, \{ `advertisement`: `One`\<`"advertisements"`, `true`\>; `creator`: `One`\<`"users"`, `false`\>; `updater`: `One`\<`"users"`, `false`\>; \}\>
Defined in: [src/drizzle/tables/advertisementAttachments.ts:75](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisementAttachments.ts#L75)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Admin Docs](/)

***

# Variable: advertisementsTable

> `const` **advertisementsTable**: `PgTableWithColumns`\<\{\}\>
Defined in: [src/drizzle/tables/advertisements.ts:20](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisements.ts#L20)

Drizzle orm postgres table definition for advertisements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: advertisementsTableInsertSchema

> `const` **advertisementsTableInsertSchema**: `BuildSchema`\<`"insert"`, \{ `createdAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `creatorId`: `PgColumn`\<\{\}, \{\}, \{\}\>; `description`: `PgColumn`\<\{\}, \{\}, \{\}\>; `endAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `id`: `PgColumn`\<\{\}, \{\}, \{\}\>; `name`: `PgColumn`\<\{\}, \{\}, \{\}\>; `organizationId`: `PgColumn`\<\{\}, \{\}, \{\}\>; `startAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `type`: `PgColumn`\<\{\}, \{\}, \{\}\>; `updatedAt`: `PgColumn`\<\{\}, \{\}, \{\}\>; `updaterId`: `PgColumn`\<\{\}, \{\}, \{\}\>; \}, \{ `endAt`: `ZodTypeAny` \| (`schema`) => `ZodTypeAny`; `name`: `ZodTypeAny` \| (`schema`) => `ZodTypeAny`; `organizationId`: `ZodTypeAny` \| (`schema`) => `ZodTypeAny`; `startAt`: `ZodTypeAny` \| (`schema`) => `ZodTypeAny`; `type`: `ZodTypeAny` \| (`schema`) => `ZodTypeAny`; \}\>
Defined in: [src/drizzle/tables/advertisements.ts:148](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisements.ts#L148)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: advertisementsTableRelations

> `const` **advertisementsTableRelations**: `Relations`\<`"advertisements"`, \{ `attachmentsWhereAdvertisement`: `Many`\<`"advertisement_attachments"`\>; `creator`: `One`\<`"users"`, `false`\>; `organization`: `One`\<`"organizations"`, `true`\>; `updater`: `One`\<`"users"`, `false`\>; \}\>
Defined in: [src/drizzle/tables/advertisements.ts:111](https://github.com/Suyash878/talawa-api/blob/2164956a3cfab8e53ec86349b53a841816d69cde/src/drizzle/tables/advertisements.ts#L111)
Loading

0 comments on commit 557cbbe

Please sign in to comment.