diff --git a/dist/createServer.js b/dist/createServer.js deleted file mode 100644 index 264fbc58e4..0000000000 --- a/dist/createServer.js +++ /dev/null @@ -1 +0,0 @@ -import fastifyCors from"@fastify/cors";import fastifyHelmet from"@fastify/helmet";import{fastifyJwt}from"@fastify/jwt";import fastifyRateLimit from"@fastify/rate-limit";import envSchema from"env-schema";import Fastify from"fastify";import{envConfigSchema,envSchemaAjv}from"./envConfigSchema.js";import plugins from"./plugins/index.js";import routes from"./routes/index.js";export const createServer=async options=>{const envConfig=envSchema({ajv:envSchemaAjv,dotenv:true,schema:envConfigSchema});Object.assign(envConfig,options?.envConfig);const fastify=Fastify({bodyLimit:0x3200000,logger:{level:envConfig.API_LOG_LEVEL,transport:envConfig.API_IS_PINO_PRETTY?{target:"pino-pretty"}:undefined}}).withTypeProvider();fastify.decorate("envConfig",envConfig);fastify.register(fastifyRateLimit,{});fastify.register(fastifyCors,{});fastify.register(fastifyHelmet,{contentSecurityPolicy:!fastify.envConfig.API_IS_GRAPHIQL});fastify.register(fastifyJwt,{secret:fastify.envConfig.API_JWT_SECRET});fastify.register(plugins,{});fastify.register(routes,{});return fastify}; \ No newline at end of file diff --git a/dist/drizzle/enums.js b/dist/drizzle/enums.js deleted file mode 100644 index fd00d1d918..0000000000 --- a/dist/drizzle/enums.js +++ /dev/null @@ -1 +0,0 @@ -import{z}from"zod";export const advertisementAttachmentTypeEnum=z.enum(["image","video"]);export const advertisementTypeEnum=z.enum(["banner","menu","pop_up"]);export const agendaItemTypeEnum=z.enum(["general","note","scripture","song"]);export const commmentVoteTypeEnum=z.enum(["down_vote","up_vote"]);export const eventAttachmentTypeEnum=z.enum(["image","video"]);export const eventAttendeeRegistrationInviteStatusEnum=z.enum(["accepted","declined","no_response"]);export const familyMembershipRoleEnum=z.enum(["adult","child","head_of_household","spouse"]);export const postAttachmentTypeEnum=z.enum(["image","video"]);export const postVoteTypeEnum=z.enum(["down_vote","up_vote"]);export const recurrenceTypeEnum=z.enum(["daily","monthly","weekly","yearly"]);export const userEducationGradeEnum=z.enum(["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"]);export const userEmploymentStatusEnum=z.enum(["full_time","part_time","unemployed"]);export const userMaritalStatusEnum=z.enum(["divorced","engaged","married","seperated","single","widowed"]);export const userNatalSexEnum=z.enum(["female","intersex","male"]);export const venueAttachmentTypeEnum=z.enum(["image","video"]);export const volunteerGroupAssignmentInviteStatusEnum=z.enum(["accepted","declined","no_response"]);export const iso3166Alpha2CountryCodeEnum=z.enum(["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","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"]); \ No newline at end of file diff --git a/dist/drizzle/schema.js b/dist/drizzle/schema.js deleted file mode 100644 index dbb2bb772e..0000000000 --- a/dist/drizzle/schema.js +++ /dev/null @@ -1 +0,0 @@ -export{actionCategoriesTableRelations,actionCategoriesTable,actionsTable,actionsTableRelations,advertisementAttachmentsTable,advertisementAttachmentsTableRelations,advertisementsTable,advertisementsTableRelations,agendaItemsTable,agendaItemsTableRelations,agendaSectionsTable,agendaSectionsTableRelations,commentVotesTable,commentVotesTableRelations,commentsTable,commentsTableRelations,eventAttachmentsTable,eventAttachmentsTableRelations,eventAttendancesTable,eventAttendancesTableRelations,eventsTable,eventsTableRelations,familiesTable,familiesTableRelations,familyMembershipsTable,familyMembershipsTableRelations,fundraisingCampaignsTable,fundraisingCampaignsTableRelations,fundsTable,fundsTableRelations,organizationMembershipsTable,organizationMembershipsTableRelations,organizationsTable,organizationsTableRelations,pledgesTable,pledgesTableRelations,postAttachmentsTable,postAttachmentsTableRelations,postVotesTable,postVotesTableRelations,postsTable,postsTableRelations,recurrencesTable,recurrencesTableRelations,tagAssignmentsTable,tagAssignmentsTableRelations,tagFoldersTable,tagFoldersTableRelations,tagsTable,tagsTableRelations,usersTable,usersTableRelations,venueAttachmentsTable,venueAttachmentsTableRelations,venueBookingsTable,venueBookingsTableRelations,venuesTable,venuesTableRelations,volunteerGroupAssignmentsTable,volunteerGroupAssignmentsTableRelations,volunteerGroupsTable,volunteerGroupsTableRelations}from"./tables/index.js"; \ No newline at end of file diff --git a/dist/drizzle/tables/actionCategories.js b/dist/drizzle/tables/actionCategories.js deleted file mode 100644 index 07bee25c05..0000000000 --- a/dist/drizzle/tables/actionCategories.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{actionsTable}from"./actions.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const actionCategoriesTable=pgTable("action_categories",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),description:text("description"),id:uuid("id").notNull().primaryKey().defaultRandom(),isDisabled:boolean("is_disabled").notNull().default(false),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const actionCategoriesTableRelations=relations(actionCategoriesTable,({many,one})=>({actionsWhereCategory:many(actionsTable,{relationName:"action_categories.id:actions.category_id"}),creator:one(usersTable,{fields:[actionCategoriesTable.creatorId],references:[usersTable.id],relationName:"action_categories.creator_id:users.id"}),organization:one(organizationsTable,{fields:[actionCategoriesTable.organizationId],references:[organizationsTable.id],relationName:"action_categories.organization_id:organizations.id"}),updater:one(usersTable,{fields:[actionCategoriesTable.updaterId],references:[usersTable.id],relationName:"action_categories.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/actions.js b/dist/drizzle/tables/actions.js deleted file mode 100644 index e3823b386b..0000000000 --- a/dist/drizzle/tables/actions.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{actionCategoriesTable}from"./actionCategories.js";import{eventsTable}from"./events.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const actionsTable=pgTable("actions",{assignedAt:timestamp("assigned_at",{mode:"date"}).notNull().defaultNow(),assigneeId:uuid("actor_id").references(()=>usersTable.id),categoryId:uuid("category_id").references(()=>actionCategoriesTable.id),completionAt:timestamp("completion_at",{mode:"date"}).notNull(),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").references(()=>eventsTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),isCompleted:boolean("is_completed").notNull().default(false),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),postCompletionNotes:text("post_completion_notes"),preCompletionNotes:text("pre_completion_notes"),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.assignedAt),index1:index().on(self.assigneeId),index2:index().on(self.categoryId),index3:index().on(self.completionAt),index4:index().on(self.createdAt),index5:index().on(self.creatorId),index6:index().on(self.eventId),index7:index().on(self.isCompleted),index8:index().on(self.organizationId)}));export const actionsTableRelations=relations(actionsTable,({one})=>({assignee:one(usersTable,{fields:[actionsTable.assigneeId],references:[usersTable.id],relationName:"actions.assignee_id:users.id"}),category:one(actionCategoriesTable,{fields:[actionsTable.categoryId],references:[actionCategoriesTable.id],relationName:"action_categories.id:actions.category_id"}),creator:one(usersTable,{fields:[actionsTable.creatorId],references:[usersTable.id],relationName:"actions.creator_id:users.id"}),event:one(eventsTable,{fields:[actionsTable.eventId],references:[eventsTable.id],relationName:"actions.event_id:events.id"}),organization:one(organizationsTable,{fields:[actionsTable.organizationId],references:[organizationsTable.id],relationName:"actions.organization_id:organizations.id"}),updater:one(usersTable,{fields:[actionsTable.updaterId],references:[usersTable.id],relationName:"actions.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/advertisementAttachments.js b/dist/drizzle/tables/advertisementAttachments.js deleted file mode 100644 index 9f95e1b457..0000000000 --- a/dist/drizzle/tables/advertisementAttachments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{advertisementAttachmentTypeEnum}from"../enums.js";import{advertisementsTable}from"./advertisements.js";import{usersTable}from"./users.js";export const advertisementAttachmentsTable=pgTable("advertisement_attachments",{advertisementId:uuid("advertisement_id").notNull().references(()=>advertisementsTable.id),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),position:integer("position").notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),uri:text("uri",{}).notNull(),type:text("type",{enum:advertisementAttachmentTypeEnum.options}).notNull()},self=>({index0:index().on(self.advertisementId),index1:index().on(self.createdAt),index2:index().on(self.creatorId),uniqueIndex0:uniqueIndex().on(self.advertisementId,self.position)}));export const advertisementAttachmentsTableRelations=relations(advertisementAttachmentsTable,({one})=>({advertisement:one(advertisementsTable,{fields:[advertisementAttachmentsTable.advertisementId],references:[advertisementsTable.id],relationName:"advertisement_attachments.advertisement_id:advertisements.id"}),creator:one(usersTable,{fields:[advertisementAttachmentsTable.creatorId],references:[usersTable.id],relationName:"advertisement_attachments.creator_id:users.id"}),updater:one(usersTable,{fields:[advertisementAttachmentsTable.updaterId],references:[usersTable.id],relationName:"advertisement_attachments.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/advertisements.js b/dist/drizzle/tables/advertisements.js deleted file mode 100644 index d0bb728451..0000000000 --- a/dist/drizzle/tables/advertisements.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{advertisementTypeEnum}from"../enums.js";import{advertisementAttachmentsTable}from"./advertisementAttachments.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const advertisementsTable=pgTable("advertisements",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),description:text("description"),endAt:timestamp("end_at",{mode:"date"}).notNull(),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),startAt:timestamp("start_at",{mode:"date"}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),type:text("type",{enum:advertisementTypeEnum.options}).notNull()},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.endAt),index3:index().on(self.name),index4:index().on(self.organizationId),index5:index().on(self.startAt),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const advertisementsTableRelations=relations(advertisementsTable,({many,one})=>({advertisementAttachmentsWhereAdvertisement:many(advertisementAttachmentsTable,{relationName:"advertisement_attachments.advertisement_id:advertisements.id"}),creator:one(usersTable,{fields:[advertisementsTable.creatorId],references:[usersTable.id],relationName:"advertisements.creator_id:users.id"}),organization:one(organizationsTable,{fields:[advertisementsTable.organizationId],references:[organizationsTable.id],relationName:"advertisements.organization_id:organizations.id"}),updater:one(usersTable,{fields:[advertisementsTable.updaterId],references:[usersTable.id],relationName:"advertisements.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/agendaItems.js b/dist/drizzle/tables/agendaItems.js deleted file mode 100644 index 31c71cb5aa..0000000000 --- a/dist/drizzle/tables/agendaItems.js +++ /dev/null @@ -1 +0,0 @@ -import{relations,sql}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{agendaItemTypeEnum}from"../enums.js";import{agendaSectionsTable}from"./agendaSections.js";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";export const agendaItemsTable=pgTable("agenda_items",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),description:text("description"),duration:text("duration"),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),key:text("key"),name:text("name",{}),position:integer("position").notNull(),sectionId:uuid("section_id").notNull().references(()=>agendaSectionsTable.id),type:text("type",{enum:agendaItemTypeEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.deletedAt),index3:index().on(self.name),index4:index().on(self.position),index5:index().on(self.sectionId),index6:index().on(self.type),uniqueIndex0:uniqueIndex().on(self.eventId,self.position).where(sql`${self.sectionId} is null`),uniqueIndex1:uniqueIndex().on(self.position,self.sectionId).where(sql`${self.sectionId} is not null`)}));export const agendaItemsTableRelations=relations(agendaItemsTable,({one})=>({creator:one(usersTable,{fields:[agendaItemsTable.creatorId],references:[usersTable.id],relationName:"agenda_items.creator_id:users.id"}),event:one(eventsTable,{fields:[agendaItemsTable.eventId],references:[eventsTable.id],relationName:"agenda_items.event_id:events.id"}),section:one(agendaSectionsTable,{fields:[agendaItemsTable.sectionId],references:[agendaSectionsTable.id],relationName:"agenda_items.section_id:agenda_sections.id"}),updater:one(usersTable,{fields:[agendaItemsTable.updaterId],references:[usersTable.id],relationName:"agenda_items.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/agendaSections.js b/dist/drizzle/tables/agendaSections.js deleted file mode 100644 index cef78c4328..0000000000 --- a/dist/drizzle/tables/agendaSections.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{agendaItemsTable}from"./agendaItems.js";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";export const agendaSectionsTable=pgTable("agenda_sections",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name",{}).notNull(),parentSectionId:uuid("parent_section_id").references(()=>agendaSectionsTable.id),position:integer("position").notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.eventId),index3:index().on(self.name),index4:index().on(self.parentSectionId),uniqueIndex0:uniqueIndex().on(self.eventId,self.name),uniqueIndex1:uniqueIndex().on(self.eventId,self.position)}));export const agendaSectionsTableRelations=relations(agendaSectionsTable,({many,one})=>({agendaItemsWhereSection:many(agendaItemsTable,{relationName:"agenda_items.section_id:agenda_sections.id"}),agendaSectionsWhereParentSection:many(agendaSectionsTable,{relationName:"agenda_sections.id:agenda_sections.parent_section_id"}),creator:one(usersTable,{fields:[agendaSectionsTable.creatorId],references:[usersTable.id],relationName:"agenda_sections.creator_id:users.id"}),event:one(eventsTable,{fields:[agendaSectionsTable.eventId],references:[eventsTable.id],relationName:"agenda_sections.event_id:events.id"}),parentSection:one(agendaSectionsTable,{fields:[agendaSectionsTable.parentSectionId],references:[agendaSectionsTable.id],relationName:"agenda_sections.id:agenda_sections.parent_section_id"}),updater:one(usersTable,{fields:[agendaSectionsTable.updaterId],references:[usersTable.id],relationName:"agenda_sections.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/commentVotes.js b/dist/drizzle/tables/commentVotes.js deleted file mode 100644 index b6deeba27b..0000000000 --- a/dist/drizzle/tables/commentVotes.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,text,timestamp,uuid}from"drizzle-orm/pg-core";import{commmentVoteTypeEnum}from"../enums.js";import{commentsTable}from"./comments.js";import{usersTable}from"./users.js";export const commentVotesTable=pgTable("comment_votes",{commentId:uuid("comment_id").notNull().references(()=>commentsTable.id,{}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),type:text("type",{enum:commmentVoteTypeEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updated_id").references(()=>usersTable.id),voterId:uuid("voter_id").references(()=>usersTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.commentId,self.voterId]}),index0:index().on(self.commentId),index1:index().on(self.createdAt),index2:index().on(self.creatorId),index3:index().on(self.type),index4:index().on(self.voterId)}));export const commentVotesTableRelations=relations(commentVotesTable,({one})=>({comment:one(commentsTable,{fields:[commentVotesTable.commentId],references:[commentsTable.id],relationName:"comment_votes.comment_id:comments.id"}),creator:one(usersTable,{fields:[commentVotesTable.creatorId],references:[usersTable.id],relationName:"comment_votes.creator_id:users.id"}),updater:one(usersTable,{fields:[commentVotesTable.updaterId],references:[usersTable.id],relationName:"comment_votes.updater_id:users.id"}),voter:one(usersTable,{fields:[commentVotesTable.voterId],references:[usersTable.id],relationName:"comment_votes.voter_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/comments.js b/dist/drizzle/tables/comments.js deleted file mode 100644 index 5a410b85ef..0000000000 --- a/dist/drizzle/tables/comments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{commentVotesTable}from"./commentVotes.js";import{postsTable}from"./posts.js";import{usersTable}from"./users.js";export const commentsTable=pgTable("comments",{body:text("body").notNull(),commenterId:uuid("commenter_id").references(()=>usersTable.id,{}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),id:uuid("id").notNull().primaryKey().defaultRandom(),parentCommentId:uuid("parent_comment_id").references(()=>commentsTable.id,{}),pinnedAt:timestamp("pinned_at",{mode:"date"}),pinnerId:uuid("pinner_id").references(()=>usersTable.id,{}),postId:uuid("post_id").notNull().references(()=>postsTable.id,{}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.commenterId),index1:index().on(self.createdAt),index2:index().on(self.creatorId),index3:index().on(self.parentCommentId),index4:index().on(self.pinnedAt),index5:index().on(self.postId)}));export const commentsTableRelations=relations(commentsTable,({many,one})=>({childCommentsWhereParentComment:many(commentsTable,{relationName:"comments.id:comments.parent_comment_id"}),commenter:one(usersTable,{fields:[commentsTable.commenterId],references:[usersTable.id],relationName:"comments.commenter_id:users.id"}),commentVotesWhereComment:many(commentVotesTable,{relationName:"comment_votes.comment_id:comments.id"}),creator:one(usersTable,{fields:[commentsTable.creatorId],references:[usersTable.id],relationName:"comments.creator_id:users.id"}),parentComment:one(commentsTable,{fields:[commentsTable.parentCommentId],references:[commentsTable.id],relationName:"comments.id:comments.parent_comment_id"}),pinner:one(usersTable,{fields:[commentsTable.pinnerId],references:[usersTable.id],relationName:"comments.pinner_id:users.id"}),post:one(postsTable,{fields:[commentsTable.postId],references:[postsTable.id],relationName:"comments.post_id:posts.id"}),updater:one(usersTable,{fields:[commentsTable.updaterId],references:[usersTable.id],relationName:"comments.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/eventAttachments.js b/dist/drizzle/tables/eventAttachments.js deleted file mode 100644 index 480f9ba30a..0000000000 --- a/dist/drizzle/tables/eventAttachments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{eventAttachmentTypeEnum}from"../enums.js";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";export const eventAttachmentsTable=pgTable("event_attachments",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),position:integer("position").notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),uri:text("uri",{}).notNull(),type:text("type",{enum:eventAttachmentTypeEnum.options}).notNull()},self=>({index0:index().on(self.eventId),index1:index().on(self.createdAt),index2:index().on(self.creatorId),uniqueIndex0:uniqueIndex().on(self.eventId,self.position)}));export const eventAttachmentsTableRelations=relations(eventAttachmentsTable,({one})=>({creator:one(usersTable,{fields:[eventAttachmentsTable.creatorId],references:[usersTable.id],relationName:"event_attachments.creator_id:users.id"}),event:one(eventsTable,{fields:[eventAttachmentsTable.eventId],references:[eventsTable.id],relationName:"event_attachments.event_id:events.id"}),updater:one(usersTable,{fields:[eventAttachmentsTable.updaterId],references:[usersTable.id],relationName:"event_attachments.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/eventAttendances.js b/dist/drizzle/tables/eventAttendances.js deleted file mode 100644 index f793d4d549..0000000000 --- a/dist/drizzle/tables/eventAttendances.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{eventAttendeeRegistrationInviteStatusEnum}from"../enums.js";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";export const eventAttendancesTable=pgTable("event_attendances",{attendeeId:uuid("attendee_id").references(()=>usersTable.id),checkInAt:timestamp("check_in_at",{mode:"date"}),checkOutAt:timestamp("check_out_at",{mode:"date"}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),inviteStatus:text("invite_status",{enum:eventAttendeeRegistrationInviteStatusEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.attendeeId),index1:index().on(self.checkInAt),index2:index().on(self.checkOutAt),index3:index().on(self.createdAt),index4:index().on(self.creatorId),index5:index().on(self.eventId),index6:index().on(self.inviteStatus)}));export const eventAttendancesTableRelations=relations(eventAttendancesTable,({one})=>({attendee:one(usersTable,{fields:[eventAttendancesTable.attendeeId],references:[usersTable.id],relationName:"event_attendances.attendee_id:users.id"}),creator:one(usersTable,{fields:[eventAttendancesTable.creatorId],references:[usersTable.id],relationName:"event_attendances.creator_id:users.id"}),event:one(eventsTable,{fields:[eventAttendancesTable.eventId],references:[eventsTable.id],relationName:"event_attendances.event_id:events.id"}),updater:one(usersTable,{fields:[eventAttendancesTable.updaterId],references:[usersTable.id],relationName:"event_attendances.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/events.js b/dist/drizzle/tables/events.js deleted file mode 100644 index 0d572b581b..0000000000 --- a/dist/drizzle/tables/events.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,date,index,pgTable,text,time,timestamp,uuid}from"drizzle-orm/pg-core";import{actionsTable}from"./actions.js";import{agendaSectionsTable}from"./agendaSections.js";import{eventAttachmentsTable}from"./eventAttachments.js";import{eventAttendancesTable}from"./eventAttendances.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";import{venueBookingsTable}from"./venueBookings.js";import{volunteerGroupsTable}from"./volunteerGroups.js";export const eventsTable=pgTable("events",{baseRecurringEventId:uuid("base_recurring_event_id").references(()=>eventsTable.id),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),description:text("description"),endDate:date("end_date",{mode:"date"}),endTime:time("end_time"),id:uuid("id").notNull().primaryKey().defaultRandom(),isAllDay:boolean("is_all_day").notNull().default(false),isBaseRecurringEvent:boolean("is_base_recurring_event").notNull().default(false),isPrivate:boolean("is_private").notNull().default(false),isRecurring:boolean("is_recurring").notNull().default(false),isRecurringException:boolean("is_recurring_exception").notNull().default(false),isRegisterable:boolean("is_registerable").notNull().default(true),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),startDate:date("start_date",{mode:"date"}).notNull(),startTime:time("start_time"),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),index3:index().on(self.organizationId)}));export const eventsTableRelations=relations(eventsTable,({many,one})=>({actionsWhereEvent:many(actionsTable,{relationName:"actions.event_id:events.id"}),agendaSectionsWhereEvent:many(agendaSectionsTable,{relationName:"agenda_sections.event_id:events.id"}),creator:one(usersTable,{fields:[eventsTable.creatorId],references:[usersTable.id],relationName:"events.creator_id:users.id"}),eventAttachmentsWhereEvent:many(eventAttachmentsTable,{relationName:"event_attachments.event_id:events.id"}),eventAttendancesWhereEvent:many(eventAttendancesTable,{relationName:"event_attendances.event_id:events.id"}),updater:one(usersTable,{fields:[eventsTable.updaterId],references:[usersTable.id],relationName:"events.updater_id:users.id"}),venueBookingsWhereEvent:many(venueBookingsTable,{relationName:"events.id:venue_bookings.event_id"}),volunteerGroupsWhereEvent:many(volunteerGroupsTable,{relationName:"events.id:volunteer_groups.event_id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/families.js b/dist/drizzle/tables/families.js deleted file mode 100644 index c84ab5a6f0..0000000000 --- a/dist/drizzle/tables/families.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{familyMembershipsTable}from"./familyMemberships.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const familiesTable=pgTable("families",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),index3:index().on(self.organizationId),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const familiesTableRelations=relations(familiesTable,({one,many})=>({creator:one(usersTable,{fields:[familiesTable.creatorId],references:[usersTable.id],relationName:"families.creator_id:users.id"}),familyMembershipsWhereFamily:many(familyMembershipsTable,{relationName:"families.id:family_memberships.family_id"}),organization:one(organizationsTable,{fields:[familiesTable.organizationId],references:[organizationsTable.id],relationName:"families.organization_id:organizations.id"}),updater:one(usersTable,{fields:[familiesTable.updaterId],references:[usersTable.id],relationName:"families.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/familyMemberships.js b/dist/drizzle/tables/familyMemberships.js deleted file mode 100644 index c882b471b2..0000000000 --- a/dist/drizzle/tables/familyMemberships.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,text,timestamp,uuid}from"drizzle-orm/pg-core";import{familyMembershipRoleEnum}from"../enums.js";import{familiesTable}from"./families.js";import{usersTable}from"./users.js";export const familyMembershipsTable=pgTable("family_memberships",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),familyId:uuid("family_id").notNull().references(()=>familiesTable.id),memberId:uuid("member_id").references(()=>usersTable.id),role:text("role",{enum:familyMembershipRoleEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({compositePrimaryKey:primaryKey({columns:[self.familyId,self.memberId]}),index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.familyId),index3:index().on(self.memberId)}));export const familyMembershipsTableRelations=relations(familyMembershipsTable,({one})=>({creator:one(usersTable,{fields:[familyMembershipsTable.creatorId],references:[usersTable.id],relationName:"family_memberships.creator_id:users.id"}),family:one(familiesTable,{fields:[familyMembershipsTable.familyId],references:[familiesTable.id],relationName:"families.id:family_memberships.family_id"}),member:one(usersTable,{fields:[familyMembershipsTable.memberId],references:[usersTable.id],relationName:"family_memberships.member_id:users.id"}),updater:one(usersTable,{fields:[familyMembershipsTable.updaterId],references:[usersTable.id],relationName:"family_memberships.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/fundraisingCampaigns.js b/dist/drizzle/tables/fundraisingCampaigns.js deleted file mode 100644 index d624bf6fa6..0000000000 --- a/dist/drizzle/tables/fundraisingCampaigns.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,unique,uuid}from"drizzle-orm/pg-core";import{fundsTable}from"./funds.js";import{pledgesTable}from"./pledges.js";import{usersTable}from"./users.js";export const fundraisingCampaignsTable=pgTable("fundraising_campaigns",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),endAt:timestamp("end_at",{mode:"date"}).notNull(),fundId:uuid("fund_id").notNull().references(()=>fundsTable.id),goalAmount:integer("goal_amount").notNull(),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name",{}).notNull(),startAt:timestamp("start_at",{mode:"date"}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.endAt),index3:index().on(self.fundId),index4:index().on(self.name),index5:index().on(self.startAt),unique0:unique().on(self.fundId,self.name)}));export const fundraisingCampaignsTableRelations=relations(fundraisingCampaignsTable,({many,one})=>({creator:one(usersTable,{fields:[fundraisingCampaignsTable.creatorId],references:[usersTable.id],relationName:"fundraising_campaigns.creator_id:users.id"}),fund:one(fundsTable,{fields:[fundraisingCampaignsTable.fundId],references:[fundsTable.id],relationName:"fundraising_campaigns.fund_id:funds.id"}),pledgesWhereFundraisingCampaign:many(pledgesTable,{relationName:"fundraising_campaigns.id:pledges.fundraising_campaign_id"}),updater:one(usersTable,{fields:[fundraisingCampaignsTable.updaterId],references:[usersTable.id],relationName:"fundraising_campaigns.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/funds.js b/dist/drizzle/tables/funds.js deleted file mode 100644 index 7393058b56..0000000000 --- a/dist/drizzle/tables/funds.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,pgTable,text,timestamp,unique,uuid}from"drizzle-orm/pg-core";import{fundraisingCampaignsTable}from"./fundraisingCampaigns.js";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const fundsTable=pgTable("funds",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),id:uuid("id").notNull().primaryKey().defaultRandom(),isArchived:boolean("is_archived").notNull().default(false),isDefault:boolean("is_default").notNull().default(false),isTaxDeductible:boolean("is_tax_deductibe").notNull().default(false),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),index3:index().on(self.organizationId),unique0:unique().on(self.name,self.organizationId)}));export const fundsTableRelations=relations(fundsTable,({one,many})=>({creator:one(usersTable,{fields:[fundsTable.creatorId],references:[usersTable.id],relationName:"funds.creator_id:users.id"}),fundraisingCampaignsWhereFund:many(fundraisingCampaignsTable,{relationName:"fundraising_campaigns.fund_id:funds.id"}),organization:one(organizationsTable,{fields:[fundsTable.organizationId],references:[organizationsTable.id],relationName:"funds.organization_id:organizations.id"}),updater:one(usersTable,{fields:[fundsTable.updaterId],references:[usersTable.id],relationName:"funds.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/index.js b/dist/drizzle/tables/index.js deleted file mode 100644 index 7537e980e8..0000000000 --- a/dist/drizzle/tables/index.js +++ /dev/null @@ -1 +0,0 @@ -export*from"./actionCategories.js";export*from"./actions.js";export*from"./advertisementAttachments.js";export*from"./advertisements.js";export*from"./agendaItems.js";export*from"./agendaSections.js";export*from"./comments.js";export*from"./commentVotes.js";export*from"./eventAttachments.js";export*from"./eventAttendances.js";export*from"./events.js";export*from"./families.js";export*from"./familyMemberships.js";export*from"./fundraisingCampaigns.js";export*from"./funds.js";export*from"./organizationMemberships.js";export*from"./organizations.js";export*from"./pledges.js";export*from"./postAttachments.js";export*from"./posts.js";export*from"./postVotes.js";export*from"./recurrences.js";export*from"./tagAssignments.js";export*from"./tagFolders.js";export*from"./tags.js";export*from"./users.js";export*from"./venueAttachments.js";export*from"./venueBookings.js";export*from"./venues.js";export*from"./volunteerGroupAssignments.js";export*from"./volunteerGroups.js"; \ No newline at end of file diff --git a/dist/drizzle/tables/organizationMemberships.js b/dist/drizzle/tables/organizationMemberships.js deleted file mode 100644 index be35db500d..0000000000 --- a/dist/drizzle/tables/organizationMemberships.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,pgTable,primaryKey,text,timestamp,uuid}from"drizzle-orm/pg-core";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";export const organizationMembershipsTable=pgTable("organization_memberships",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),isAdministrator:boolean("is_administrator").notNull().default(false),isApproved:boolean("is_approved").notNull().default(false),isBlocked:boolean("is_blocked").notNull().default(false),reasonForBlock:text("reason_for_block"),memberId:uuid("member_id").notNull().references(()=>usersTable.id,{}),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id,{}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.memberId,self.organizationId]}),index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.isAdministrator),index3:index().on(self.isApproved),index4:index().on(self.isBlocked),index5:index().on(self.memberId),index6:index().on(self.organizationId)}));export const organizationMembershipsTableRelations=relations(organizationMembershipsTable,({one})=>({creator:one(usersTable,{fields:[organizationMembershipsTable.creatorId],references:[usersTable.id],relationName:"organization_memberships.creator_id:users.id"}),member:one(usersTable,{fields:[organizationMembershipsTable.memberId],references:[usersTable.id],relationName:"organization_memberships.member_id:users.id"}),organization:one(organizationsTable,{fields:[organizationMembershipsTable.organizationId],references:[organizationsTable.id],relationName:"organization_memberships.organization_id:organizations.id"}),updater:one(usersTable,{fields:[organizationMembershipsTable.updaterId],references:[usersTable.id],relationName:"organization_memberships.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/organizations.js b/dist/drizzle/tables/organizations.js deleted file mode 100644 index 07793c3421..0000000000 --- a/dist/drizzle/tables/organizations.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{iso3166Alpha2CountryCodeEnum}from"../enums.js";import{actionCategoriesTable}from"./actionCategories.js";import{actionsTable}from"./actions.js";import{advertisementsTable}from"./advertisements.js";import{familiesTable}from"./families.js";import{fundsTable}from"./funds.js";import{organizationMembershipsTable}from"./organizationMemberships.js";import{postsTable}from"./posts.js";import{tagFoldersTable}from"./tagFolders.js";import{tagsTable}from"./tags.js";import{usersTable}from"./users.js";import{venuesTable}from"./venues.js";export const organizationsTable=pgTable("organizations",{addressLine1:text("address_line_1"),addressLine2:text("address_line_2"),avatarURI:text("avatar_uri"),city:text("city"),countryCode:text("country_code",{enum:iso3166Alpha2CountryCodeEnum.options}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),description:text("description"),id:uuid("id").notNull().primaryKey().defaultRandom(),isPrivate:boolean("is_private").notNull().default(false),isVisible:boolean("is_visible").notNull().default(true),name:text("name",{}).notNull().unique(),postalCode:text("postal_code"),state:text("state"),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name)}));export const organizationsTableRelations=relations(organizationsTable,({one,many})=>({actionsWhereOrganization:many(actionsTable,{relationName:"actions.organization_id:organizations.id"}),actionCategoriesWhereOrganization:many(actionCategoriesTable,{relationName:"action_categories.organization_id:organizations.id"}),advertisementsWhereOrganization:many(advertisementsTable,{relationName:"advertisements.organization_id:organizations.id"}),creator:one(usersTable,{fields:[organizationsTable.creatorId],references:[usersTable.id],relationName:"organizations.creator_id:users.id"}),familiesWhereOrganization:many(familiesTable,{relationName:"families.organization_id:organizations.id"}),fundsWhereOrganization:many(fundsTable,{relationName:"funds.organization_id:organizations.id"}),organizationMembershipsWhereOrganization:many(organizationMembershipsTable,{relationName:"organization_memberships.organization_id:organizations.id"}),postsWhereOrganization:many(postsTable,{relationName:"organizations.id:posts.organization_id"}),tagFoldersWhereOrganization:many(tagFoldersTable,{relationName:"organizations.id:tag_folders.organization_id"}),tagsWhereOrganization:many(tagsTable,{relationName:"organizations.id:tags.organization_id"}),updater:one(usersTable,{fields:[organizationsTable.updaterId],references:[usersTable.id],relationName:"organizations.updater_id:users.id"}),venuesWhereOrganization:many(venuesTable,{relationName:"organizations.id:venues.organization_id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/pledges.js b/dist/drizzle/tables/pledges.js deleted file mode 100644 index d63ff3d30c..0000000000 --- a/dist/drizzle/tables/pledges.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,index,integer,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{fundraisingCampaignsTable}from"./fundraisingCampaigns.js";import{usersTable}from"./users.js";export const pledgesTable=pgTable("pledges",{amount:integer("amount").notNull(),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),endAt:timestamp("end_at",{mode:"date"}).notNull(),fundraisingCampaignId:uuid("fundraising_campaign_id").notNull().references(()=>fundraisingCampaignsTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),isIncludeFamily:boolean("is_include_family").notNull().default(false),notes:text("notes"),pledgerId:uuid("pledger_id").references(()=>usersTable.id),startAt:timestamp("start_at",{mode:"date"}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.endAt),index3:index().on(self.fundraisingCampaignId),index4:index().on(self.pledgerId),index5:index().on(self.startAt)}));export const pledgesTableRelations=relations(pledgesTable,({one})=>({creator:one(usersTable,{fields:[pledgesTable.creatorId],references:[usersTable.id],relationName:"pledges.creator_id:users.id"}),fundraisingCampaign:one(fundraisingCampaignsTable,{fields:[pledgesTable.fundraisingCampaignId],references:[fundraisingCampaignsTable.id],relationName:"fundraising_campaigns.id:pledges.fundraising_campaign_id"}),pledger:one(usersTable,{fields:[pledgesTable.pledgerId],references:[usersTable.id],relationName:"pledges.pledger_id:users.id"}),updater:one(usersTable,{fields:[pledgesTable.updaterId],references:[usersTable.id],relationName:"pledges.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/postAttachments.js b/dist/drizzle/tables/postAttachments.js deleted file mode 100644 index ccb0de4eb2..0000000000 --- a/dist/drizzle/tables/postAttachments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{postAttachmentTypeEnum}from"../enums.js";import{postsTable}from"./posts.js";import{usersTable}from"./users.js";export const postAttachmentsTable=pgTable("post_attachments",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),position:integer("position").notNull(),postId:uuid("post_id").notNull().references(()=>postsTable.id),type:text("type",{enum:postAttachmentTypeEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),uri:text("uri",{}).notNull()},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.postId),uniqueIndex0:uniqueIndex().on(self.position,self.postId)}));export const postAttachmentsTableRelations=relations(postAttachmentsTable,({one})=>({creator:one(usersTable,{fields:[postAttachmentsTable.creatorId],references:[usersTable.id],relationName:"post_attachments.creator_id:users.id"}),post:one(postsTable,{fields:[postAttachmentsTable.postId],references:[postsTable.id],relationName:"post_attachments.post_id:posts.id"}),updater:one(usersTable,{fields:[postAttachmentsTable.updaterId],references:[usersTable.id],relationName:"post_attachments.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/postVotes.js b/dist/drizzle/tables/postVotes.js deleted file mode 100644 index 35951adf2b..0000000000 --- a/dist/drizzle/tables/postVotes.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,text,timestamp,uuid}from"drizzle-orm/pg-core";import{postVoteTypeEnum}from"../enums.js";import{postsTable}from"./posts.js";import{usersTable}from"./users.js";export const postVotesTable=pgTable("post_votes",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),postId:uuid("post_id").notNull().references(()=>postsTable.id,{}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updated_id").references(()=>usersTable.id),type:text("type",{enum:postVoteTypeEnum.options}).notNull(),voterId:uuid("voter_id").references(()=>usersTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.postId,self.voterId]}),index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.postId),index3:index().on(self.type),index4:index().on(self.voterId)}));export const postVotesTableRelations=relations(postVotesTable,({one})=>({creator:one(usersTable,{fields:[postVotesTable.creatorId],references:[usersTable.id],relationName:"post_votes.creator_id:users.id"}),post:one(postsTable,{fields:[postVotesTable.postId],references:[postsTable.id],relationName:"post_votes.post_id:posts.id"}),updater:one(usersTable,{fields:[postVotesTable.updaterId],references:[usersTable.id],relationName:"post_votes.updater_id:users.id"}),voter:one(usersTable,{fields:[postVotesTable.voterId],references:[usersTable.id],relationName:"post_votes.voter_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/posts.js b/dist/drizzle/tables/posts.js deleted file mode 100644 index 12f1ef9be2..0000000000 --- a/dist/drizzle/tables/posts.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{commentsTable}from"./comments.js";import{organizationsTable}from"./organizations.js";import{postAttachmentsTable}from"./postAttachments.js";import{postVotesTable}from"./postVotes.js";import{usersTable}from"./users.js";export const postsTable=pgTable("posts",{caption:text("caption").notNull(),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),id:uuid("id").notNull().primaryKey().defaultRandom(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id,{}),pinnedAt:timestamp("pinned_at",{mode:"date"}),pinnerId:uuid("pinner_id").references(()=>usersTable.id,{}),posterId:uuid("poster_id").references(()=>usersTable.id,{}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.organizationId),index3:index().on(self.pinnedAt),index4:index().on(self.posterId)}));export const postsTableRelations=relations(postsTable,({many,one})=>({commentsWherePost:many(commentsTable,{relationName:"comments.post_id:posts.id"}),creator:one(usersTable,{fields:[postsTable.creatorId],references:[usersTable.id],relationName:"posts.creator_id:users.id"}),organization:one(organizationsTable,{fields:[postsTable.organizationId],references:[organizationsTable.id],relationName:"organizations.id:posts.organization_id"}),pinner:one(usersTable,{fields:[postsTable.pinnerId],references:[usersTable.id],relationName:"posts.pinner_id:users.id"}),poster:one(usersTable,{fields:[postsTable.posterId],references:[usersTable.id],relationName:"posts.poster_id:users.id"}),postAttachmentsWherePost:many(postAttachmentsTable,{relationName:"post_attachments.post_id:posts.id"}),postVotesWherePost:many(postVotesTable,{relationName:"post_votes.post_id:posts.id"}),updater:one(usersTable,{fields:[postsTable.updaterId],references:[usersTable.id],relationName:"posts.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/recurrences.js b/dist/drizzle/tables/recurrences.js deleted file mode 100644 index 8f93b02d9a..0000000000 --- a/dist/drizzle/tables/recurrences.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{recurrenceTypeEnum}from"../enums.js";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";export const recurrencesTable=pgTable("recurrences",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),dayOfMonth:integer("day_of_month"),dayOfWeek:integer("day_of_week"),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),maxCount:integer("max_count"),monthOfYear:integer("month_of_year"),rruleString:text("rrule_string").notNull(),seperationCount:integer("seperation_count"),type:text("type",{enum:recurrenceTypeEnum.options}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),weekOfMonth:integer("week_of_month")},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index3:index().on(self.eventId)}));export const recurrencesTableRelations=relations(recurrencesTable,({one})=>({creator:one(usersTable,{fields:[recurrencesTable.creatorId],references:[usersTable.id],relationName:"recurrences.creator_id:users.id"}),event:one(eventsTable,{fields:[recurrencesTable.eventId],references:[eventsTable.id],relationName:"recurrences.event_id:events.id"}),updater:one(usersTable,{fields:[recurrencesTable.updaterId],references:[usersTable.id],relationName:"recurrences.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/tagAssignments.js b/dist/drizzle/tables/tagAssignments.js deleted file mode 100644 index 6550af40b0..0000000000 --- a/dist/drizzle/tables/tagAssignments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,timestamp,uuid}from"drizzle-orm/pg-core";import{tagsTable}from"./tags.js";import{usersTable}from"./users.js";export const tagAssignmentsTable=pgTable("tag_assignments",{assigneeId:uuid("assignee_id").notNull().references(()=>usersTable.id,{}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),tagId:uuid("tag_id").references(()=>tagsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.assigneeId,self.tagId]}),index0:index().on(self.assigneeId),index1:index().on(self.createdAt),index2:index().on(self.creatorId),index3:index().on(self.tagId)}));export const tagAssignmentsTableRelations=relations(tagAssignmentsTable,({one})=>({assignee:one(usersTable,{fields:[tagAssignmentsTable.assigneeId],references:[usersTable.id],relationName:"tag_assignments.assignee_id:users.id"}),creator:one(usersTable,{fields:[tagAssignmentsTable.creatorId],references:[usersTable.id],relationName:"tag_assignments.creator_id:users.id"}),tag:one(tagsTable,{fields:[tagAssignmentsTable.tagId],references:[tagsTable.id],relationName:"tag_assignments.tag_id:tags.id"}),updater:one(usersTable,{fields:[tagAssignmentsTable.updaterId],references:[usersTable.id],relationName:"tag_assignments.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/tagFolders.js b/dist/drizzle/tables/tagFolders.js deleted file mode 100644 index cf3b9fae9d..0000000000 --- a/dist/drizzle/tables/tagFolders.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{organizationsTable}from"./organizations.js";import{tagsTable}from"./tags.js";import{usersTable}from"./users.js";export const tagFoldersTable=pgTable("tag_folders",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name").notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id,{}),parentFolderId:uuid("parent_folder_id").references(()=>tagFoldersTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),index3:index().on(self.organizationId),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const tagFoldersTableRelations=relations(tagFoldersTable,({many,one})=>({creator:one(usersTable,{fields:[tagFoldersTable.creatorId],references:[usersTable.id],relationName:"tag_folders.creator_id:users.id"}),organization:one(organizationsTable,{fields:[tagFoldersTable.organizationId],references:[organizationsTable.id],relationName:"organizations.id:tag_folders.organization_id"}),parentFolder:one(tagFoldersTable,{fields:[tagFoldersTable.parentFolderId],references:[tagFoldersTable.id],relationName:"tag_folders.id:tag_folders.parent_folder_id"}),tagFoldersWhereParentFolder:many(tagFoldersTable,{relationName:"tag_folders.id:tag_folders.parent_folder_id"}),tagsWhereFolder:many(tagsTable,{relationName:"tag_folders.id:tags.folder_id"}),updater:one(usersTable,{fields:[tagFoldersTable.updaterId],references:[usersTable.id],relationName:"tag_folders.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/tags.js b/dist/drizzle/tables/tags.js deleted file mode 100644 index 96d87830c5..0000000000 --- a/dist/drizzle/tables/tags.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{organizationsTable}from"./organizations.js";import{tagAssignmentsTable}from"./tagAssignments.js";import{tagFoldersTable}from"./tagFolders.js";import{usersTable}from"./users.js";export const tagsTable=pgTable("tags",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),folderId:uuid("folder_id").references(()=>tagFoldersTable.id),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name").notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id,{}),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.folderId),index3:index().on(self.name),index4:index().on(self.organizationId),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const tagsTableRelations=relations(tagsTable,({many,one})=>({creator:one(usersTable,{fields:[tagsTable.creatorId],references:[usersTable.id],relationName:"tags.creator_id:users.id"}),folder:one(tagFoldersTable,{fields:[tagsTable.folderId],references:[tagFoldersTable.id],relationName:"tag_folders.id:tags.folder_id"}),organization:one(organizationsTable,{fields:[tagsTable.organizationId],references:[organizationsTable.id],relationName:"organizations.id:tags.organization_id"}),tagAssignmentsWhereTag:many(tagAssignmentsTable,{relationName:"tag_assignments.tag_id:tags.id"}),updater:one(usersTable,{fields:[tagsTable.updaterId],references:[usersTable.id],relationName:"tags.updater_id:users.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/users.js b/dist/drizzle/tables/users.js deleted file mode 100644 index 74563dad71..0000000000 --- a/dist/drizzle/tables/users.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{boolean,date,index,pgTable,text,timestamp,uuid}from"drizzle-orm/pg-core";import{iso3166Alpha2CountryCodeEnum,userEducationGradeEnum,userEmploymentStatusEnum,userMaritalStatusEnum,userNatalSexEnum}from"../enums.js";import{actionCategoriesTable}from"./actionCategories.js";import{actionsTable}from"./actions.js";import{advertisementAttachmentsTable}from"./advertisementAttachments.js";import{advertisementsTable}from"./advertisements.js";import{agendaSectionsTable}from"./agendaSections.js";import{commentVotesTable}from"./commentVotes.js";import{commentsTable}from"./comments.js";import{eventAttachmentsTable}from"./eventAttachments.js";import{eventsTable}from"./events.js";import{familiesTable}from"./families.js";import{familyMembershipsTable}from"./familyMemberships.js";import{fundraisingCampaignsTable}from"./fundraisingCampaigns.js";import{fundsTable}from"./funds.js";import{organizationMembershipsTable}from"./organizationMemberships.js";import{organizationsTable}from"./organizations.js";import{pledgesTable}from"./pledges.js";import{postAttachmentsTable}from"./postAttachments.js";import{postVotesTable}from"./postVotes.js";import{postsTable}from"./posts.js";import{tagAssignmentsTable}from"./tagAssignments.js";import{tagFoldersTable}from"./tagFolders.js";import{tagsTable}from"./tags.js";import{venueAttachmentsTable}from"./venueAttachments.js";import{venueBookingsTable}from"./venueBookings.js";import{venuesTable}from"./venues.js";import{volunteerGroupAssignmentsTable}from"./volunteerGroupAssignments.js";import{volunteerGroupsTable}from"./volunteerGroups.js";export const usersTable=pgTable("user",{addressLine1:text("address_line_1"),addressLine2:text("address_line_2"),avatarURI:text("avatar_uri"),birthDate:date("birth_date",{mode:"date"}),city:text("city"),countryCode:text("country_code",{enum:iso3166Alpha2CountryCodeEnum.options}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id),description:text("description"),educationGrade:text("education_grade",{enum:userEducationGradeEnum.options}),state:text("state"),email:text("email").notNull().unique(),employmentStatus:text("employment_status",{enum:userEmploymentStatusEnum.options}),firstName:text("first_name"),homePhoneNumber:text("home_phone_number"),id:uuid("id").notNull().primaryKey().defaultRandom(),isAdminstrator:boolean("is_administrator").notNull().default(false),isEmailVerified:boolean("is_email_verified").notNull().default(false),lastName:text("last_name"),maritalStatus:text("marital_status",{enum:userMaritalStatusEnum.options}),mobilePhoneNumber:text("mobile_phone_number"),name:text("name").unique(),natalSex:text("natal_sex",{enum:userNatalSexEnum.options}),passwordHash:text("password_hash"),postalCode:text("postal_code"),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id),workPhoneNumber:text("work_phone_number")},self=>({index0:index().on(self.createdAt),index1:index().on(self.name)}));export const usersTableRelations=relations(usersTable,({many})=>({actionsWhereAssignee:many(actionsTable,{relationName:"actions.assignee_id:users.id"}),actionsWhereCreator:many(actionsTable,{relationName:"actions.creator_id:users.id"}),actionsWhereUpdater:many(actionsTable,{relationName:"actions.updater_id:users.id"}),actionCategoriesWhereCreator:many(actionCategoriesTable,{relationName:"action_categories.creator_id:users.id"}),actionCategoriesWhereUpdater:many(actionCategoriesTable,{relationName:"action_categories.updater_id:users.id"}),advertisementAttachmentsWhereCreator:many(advertisementAttachmentsTable,{relationName:"advertisement_attachments.creator_id:users.id"}),advertisementAttachmentsWhereUpdater:many(advertisementAttachmentsTable,{relationName:"advertisement_attachments.updater_id:users.id"}),advertisementsWhereCreator:many(advertisementsTable,{relationName:"advertisements.creator_id:users.id"}),advertisementsWhereUpdater:many(advertisementsTable,{relationName:"advertisements.updater_id:users.id"}),agendaSectionsWhereCreator:many(agendaSectionsTable,{relationName:"agenda_sections.creator_id:users.id"}),agendaSectionsWhereUpdater:many(agendaSectionsTable,{relationName:"agenda_sections.updater_id:users.id"}),commentsWhereCommenter:many(commentsTable,{relationName:"comments.commenter_id:users.id"}),commentsWhereCreator:many(commentsTable,{relationName:"comments.creator_id:users.id"}),commentsWherePinner:many(commentsTable,{relationName:"comments.pinner_id:users.id"}),commentsWhereUpdater:many(commentsTable,{relationName:"comments.updater_id:users.id"}),commentVotesWhereCreator:many(commentVotesTable,{relationName:"comment_votes.creator_id:users.id"}),commentVotesWhereUpdater:many(commentVotesTable,{relationName:"comment_votes.updater_id:users.id"}),commentVotesWhereVoter:many(commentVotesTable,{relationName:"comment_votes.voter_id:users.id"}),eventsWhereCreator:many(eventsTable,{relationName:"events.creator_id:users.id"}),eventsWhereUpdater:many(eventsTable,{relationName:"events.updater_id:users.id"}),eventAttachmentsWhereCreator:many(eventAttachmentsTable,{relationName:"event_attachments.creator_id:users.id"}),eventAttachmentsWhereUpdater:many(eventAttachmentsTable,{relationName:"event_attachments.updater_id:users.id"}),familiesWhereCreator:many(familiesTable,{relationName:"families.creator_id:users.id"}),familiesWhereUpdater:many(familiesTable,{relationName:"families.updater_id:users.id"}),familyMembershipsWhereCreator:many(familyMembershipsTable,{relationName:"family_memberships.creator_id:users.id"}),familyMembershipsWhereMember:many(familyMembershipsTable,{relationName:"family_memberships.member_id:users.id"}),familyMembershipsWhereUpdater:many(familyMembershipsTable,{relationName:"family_memberships.updater_id:users.id"}),fundraisingCampaignsWhereCreator:many(fundraisingCampaignsTable,{relationName:"fundraising_campaigns.creator_id:users.id"}),fundraisingCampaignsWhereUpdater:many(fundraisingCampaignsTable,{relationName:"fundraising_campaigns.updater_id:users.id"}),fundsWhereCreator:many(fundsTable,{relationName:"funds.creator_id:users.id"}),fundsWhereUpdater:many(fundsTable,{relationName:"funds.updater_id:users.id"}),organizationsWhereCreator:many(organizationsTable,{relationName:"organizations.creator_id:users.id"}),organizationsWhereUpdater:many(organizationsTable,{relationName:"organizations.updater_id:users.id"}),organizationMembershipsWhereCreator:many(organizationMembershipsTable,{relationName:"organization_memberships.creator_id:users.id"}),organizationMembershipsWhereMember:many(organizationMembershipsTable,{relationName:"organization_memberships.member_id:users.id"}),organizationMembershipsWhereUpdator:many(organizationMembershipsTable,{relationName:"organization_memberships.updater_id:users.id"}),pledgesWhereCreator:many(pledgesTable,{relationName:"pledges.creator_id:users.id"}),pledgesWherePledger:many(pledgesTable,{relationName:"pledges.pledger_id:users.id"}),pledgesWhereUpdater:many(pledgesTable,{relationName:"pledges.updater_id:users.id"}),postsWhereCreator:many(postsTable,{relationName:"posts.creator_id:users.id"}),postsWherePinner:many(postsTable,{relationName:"posts.pinner_id:users.id"}),postsWherePoster:many(postsTable,{relationName:"posts.poster_id:users.id"}),postsWhereUpdater:many(postsTable,{relationName:"posts.updater_id:users.id"}),postAttachmentsWhereCreator:many(postAttachmentsTable,{relationName:"post_attachments.creator_id:users.id"}),postAttachmentsWhereUpdater:many(postAttachmentsTable,{relationName:"post_attachments.updater_id:users.id"}),postVotesWhereCreator:many(postVotesTable,{relationName:"post_votes.creator_id:users.id"}),postVotesWhereUpdater:many(postVotesTable,{relationName:"post_votes.updater_id:users.id"}),postVotesWhereVoter:many(postVotesTable,{relationName:"post_votes.voter_id:users.id"}),tagsWhereCreator:many(tagsTable,{relationName:"tags.creator_id:users.id"}),tagsWhereUpdater:many(tagsTable,{relationName:"tags.updater_id:users.id"}),tagAssignmentsWhereAssignee:many(tagAssignmentsTable,{relationName:"tag_assignments.assignee_id:users.id"}),tagAssignmentsWhereCreator:many(tagAssignmentsTable,{relationName:"tag_assignments.creator_id:users.id"}),tagAssignmentsWhereUpdater:many(tagAssignmentsTable,{relationName:"tag_assignments.updater_id:users.id"}),tagFoldersWhereCreator:many(tagFoldersTable,{relationName:"tag_folders.creator_id:users.id"}),tagFoldersWhereUpdater:many(tagFoldersTable,{relationName:"tag_folders.updater_id:users.id"}),venuesWhereCreator:many(venuesTable,{relationName:"users.id:venues.creator_id"}),venuesWhereUpdater:many(venuesTable,{relationName:"users.id:venues.updater_id"}),venueAttachmentsWhereCreator:many(venueAttachmentsTable,{relationName:"users.id:venue_attachments.creator_id"}),venueAttachmentsWhereUpdater:many(venueAttachmentsTable,{relationName:"users.id:venue_attachments.updater_id"}),venueBookingsWhereCreator:many(venueBookingsTable,{relationName:"users.id:venue_bookings.creator_id"}),venueBookingsWhereUpdater:many(venueBookingsTable,{relationName:"users.id:venue_bookings.updater_id"}),volunteerGroupsWhereCreator:many(volunteerGroupsTable,{relationName:"users.id:volunteer_groups.creator_id"}),volunteerGroupsWhereLeader:many(volunteerGroupsTable,{relationName:"users.id:volunteer_groups.leader_id"}),volunteerGroupsWhereUpdater:many(volunteerGroupsTable,{relationName:"users.id:volunteer_groups.updater_id"}),volunteerGroupAssignmentsWhereAssignee:many(volunteerGroupAssignmentsTable,{relationName:"users.id:volunteer_group_assignments.assignee_id"}),volunteerGroupAssignmentsWhereCreator:many(volunteerGroupAssignmentsTable,{relationName:"users.id:volunteer_group_assignments.creator_id"}),volunteerGroupAssignmentsWhereUpdater:many(volunteerGroupAssignmentsTable,{relationName:"users.id:volunteer_group_assignments.updater_id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/venueAttachments.js b/dist/drizzle/tables/venueAttachments.js deleted file mode 100644 index abef6dd43c..0000000000 --- a/dist/drizzle/tables/venueAttachments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{venueAttachmentTypeEnum}from"../enums.js";import{usersTable}from"./users.js";import{venuesTable}from"./venues.js";export const venueAttachmentsTable=pgTable("venue_attachments",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),position:integer("position").notNull(),type:text("type",{enum:venueAttachmentTypeEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),uri:text("uri",{}).notNull(),venueId:uuid("venue_id").notNull().references(()=>venuesTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.venueId),uniqueIndex0:uniqueIndex().on(self.position,self.venueId)}));export const venueAttachmentsTableRelations=relations(venueAttachmentsTable,({one})=>({creator:one(usersTable,{fields:[venueAttachmentsTable.creatorId],references:[usersTable.id],relationName:"users.id:venue_attachments.creator_id"}),updater:one(usersTable,{fields:[venueAttachmentsTable.updaterId],references:[usersTable.id],relationName:"users.id:venue_attachments.updater_id"}),venue:one(venuesTable,{fields:[venueAttachmentsTable.venueId],references:[venuesTable.id],relationName:"venue_attachments.venue_id:venues.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/venueBookings.js b/dist/drizzle/tables/venueBookings.js deleted file mode 100644 index acc75b441e..0000000000 --- a/dist/drizzle/tables/venueBookings.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,timestamp,uuid}from"drizzle-orm/pg-core";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";import{venuesTable}from"./venues.js";export const venueBookingsTable=pgTable("venue_bookings",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{}),venueId:uuid("venue_id").notNull().references(()=>venuesTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.eventId,self.venueId]}),index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.eventId),index3:index().on(self.venueId)}));export const venueBookingsTableRelations=relations(venueBookingsTable,({one})=>({creator:one(usersTable,{fields:[venueBookingsTable.creatorId],references:[usersTable.id],relationName:"users.id:venue_bookings.creator_id"}),event:one(eventsTable,{fields:[venueBookingsTable.eventId],references:[eventsTable.id],relationName:"events.id:venue_bookings.event_id"}),updater:one(usersTable,{fields:[venueBookingsTable.updaterId],references:[usersTable.id],relationName:"users.id:venue_bookings.updater_id"}),venue:one(venuesTable,{fields:[venueBookingsTable.venueId],references:[venuesTable.id],relationName:"venue_bookings.venue_id:venues.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/venues.js b/dist/drizzle/tables/venues.js deleted file mode 100644 index 246df0a207..0000000000 --- a/dist/drizzle/tables/venues.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{organizationsTable}from"./organizations.js";import{usersTable}from"./users.js";import{venueAttachmentsTable}from"./venueAttachments.js";import{venueBookingsTable}from"./venueBookings.js";export const venuesTable=pgTable("venues",{capacity:integer("capacity").notNull(),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),description:text("description",{}),id:uuid("id").notNull().primaryKey().defaultRandom(),name:text("name",{}).notNull(),organizationId:uuid("organization_id").notNull().references(()=>organizationsTable.id),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id,{})},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.name),index3:index().on(self.organizationId),uniqueIndex0:uniqueIndex().on(self.name,self.organizationId)}));export const venuesTableRelations=relations(venuesTable,({many,one})=>({creator:one(usersTable,{fields:[venuesTable.creatorId],references:[usersTable.id],relationName:"users.id:venues.creator_id"}),organization:one(organizationsTable,{fields:[venuesTable.organizationId],references:[organizationsTable.id],relationName:"organizations.id:venues.organization_id"}),updater:one(usersTable,{fields:[venuesTable.updaterId],references:[usersTable.id],relationName:"users.id:venues.updater_id"}),venueAttachmentsWhereVenue:many(venueAttachmentsTable,{relationName:"venue_attachments.venue_id:venues.id"}),venueBookingsWhereVenue:many(venueBookingsTable,{relationName:"venue_bookings.venue_id:venues.id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/volunteerGroupAssignments.js b/dist/drizzle/tables/volunteerGroupAssignments.js deleted file mode 100644 index c4742f3c4f..0000000000 --- a/dist/drizzle/tables/volunteerGroupAssignments.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,pgTable,primaryKey,text,timestamp,uuid}from"drizzle-orm/pg-core";import{volunteerGroupAssignmentInviteStatusEnum}from"../enums.js";import{usersTable}from"./users.js";import{volunteerGroupsTable}from"./volunteerGroups.js";export const volunteerGroupAssignmentsTable=pgTable("volunteer_group_assignments",{assigneeId:uuid("assignee_id").notNull().references(()=>usersTable.id,{}),createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),groupId:uuid("group_id").notNull().references(()=>volunteerGroupsTable.id,{}),inviteStatus:text("invite_status",{enum:volunteerGroupAssignmentInviteStatusEnum.options}).notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({compositePrimaryKey:primaryKey({columns:[self.assigneeId,self.groupId]}),index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.groupId)}));export const volunteerGroupAssignmentsTableRelations=relations(volunteerGroupAssignmentsTable,({one})=>({assignee:one(usersTable,{fields:[volunteerGroupAssignmentsTable.assigneeId],references:[usersTable.id],relationName:"users.id:volunteer_group_assignments.assignee_id"}),creator:one(usersTable,{fields:[volunteerGroupAssignmentsTable.creatorId],references:[usersTable.id],relationName:"users.id:volunteer_group_assignments.creator_id"}),group:one(volunteerGroupsTable,{fields:[volunteerGroupAssignmentsTable.groupId],references:[volunteerGroupsTable.id],relationName:"volunteer_group_assignments.group_id:volunteer_groups.id"}),updater:one(usersTable,{fields:[volunteerGroupAssignmentsTable.updaterId],references:[usersTable.id],relationName:"users.id:volunteer_group_assignments.updater_id"})})); \ No newline at end of file diff --git a/dist/drizzle/tables/volunteerGroups.js b/dist/drizzle/tables/volunteerGroups.js deleted file mode 100644 index 00b93d4a43..0000000000 --- a/dist/drizzle/tables/volunteerGroups.js +++ /dev/null @@ -1 +0,0 @@ -import{relations}from"drizzle-orm";import{index,integer,pgTable,text,timestamp,uniqueIndex,uuid}from"drizzle-orm/pg-core";import{eventsTable}from"./events.js";import{usersTable}from"./users.js";import{volunteerGroupAssignmentsTable}from"./volunteerGroupAssignments.js";export const volunteerGroupsTable=pgTable("volunteer_groups",{createdAt:timestamp("created_at",{mode:"date"}).notNull().defaultNow(),creatorId:uuid("creator_id").references(()=>usersTable.id,{}),deletedAt:timestamp("deleted_at",{mode:"date"}),eventId:uuid("event_id").notNull().references(()=>eventsTable.id,{}),id:uuid("id").notNull().primaryKey().defaultRandom(),leaderId:uuid("leader_id").references(()=>usersTable.id),maxVolunteerCount:integer("max_volunteer_count").notNull(),name:text("name").notNull(),updatedAt:timestamp("updated_at",{mode:"date"}),updaterId:uuid("updater_id").references(()=>usersTable.id)},self=>({index0:index().on(self.createdAt),index1:index().on(self.creatorId),index2:index().on(self.eventId),index3:index().on(self.leaderId),index4:index().on(self.name),uniqueIndex0:uniqueIndex().on(self.eventId,self.name)}));export const volunteerGroupsTableRelations=relations(volunteerGroupsTable,({many,one})=>({creator:one(usersTable,{fields:[volunteerGroupsTable.creatorId],references:[usersTable.id],relationName:"users.id:volunteer_groups.creator_id"}),event:one(eventsTable,{fields:[volunteerGroupsTable.eventId],references:[eventsTable.id],relationName:"events.id:volunteer_groups.event_id"}),leader:one(usersTable,{fields:[volunteerGroupsTable.leaderId],references:[usersTable.id],relationName:"users.id:volunteer_groups.leader_id"}),volunteerGroupAssignmentsWhereGroup:many(volunteerGroupAssignmentsTable,{relationName:"volunteer_group_assignments.group_id:volunteer_groups.id"}),updater:one(usersTable,{fields:[volunteerGroupsTable.updaterId],references:[usersTable.id],relationName:"users.id:volunteer_groups.updater_id"})})); \ No newline at end of file diff --git a/dist/envConfigSchema.js b/dist/envConfigSchema.js deleted file mode 100644 index 251e0ec55d..0000000000 --- a/dist/envConfigSchema.js +++ /dev/null @@ -1 +0,0 @@ -import{Type}from"@sinclair/typebox";import ajvFormats from"ajv-formats";export const drizzleEnvConfigSchema=Type.Object({API_IS_APPLY_DRIZZLE_MIGRATIONS:Type.Boolean(),API_POSTGRES_DATABASE:Type.String({minLength:1}),API_POSTGRES_HOST:Type.String({minLength:1}),API_POSTGRES_PASSWORD:Type.String({minLength:1}),API_POSTGRES_PORT:Type.Number({maximum:65535,minimum:0}),API_POSTGRES_SSL_MODE:Type.Union([Type.Enum({allow:"allow",prefer:"prefer",require:"require",verify_full:"verify-full"}),Type.Boolean()]),API_POSTGRES_USER:Type.String()});export const envConfigSchema=Type.Composite([drizzleEnvConfigSchema,Type.Object({API_HOST:Type.String({minLength:1}),API_IS_GRAPHIQL:Type.Boolean(),API_IS_PINO_PRETTY:Type.Boolean(),API_LOG_LEVEL:Type.Enum({debug:"debug",error:"error",fatal:"fatal",info:"info",trace:"trace",warn:"warn"}),API_PORT:Type.Number({maximum:65535,minimum:0}),API_JWT_SECRET:Type.String({minLength:1})})]);export const envSchemaAjv={customOptions:ajvInstance=>{ajvFormats.default(ajvInstance,{formats:["email","uri"]});return ajvInstance}}; \ No newline at end of file diff --git a/dist/graphql/context.js b/dist/graphql/context.js deleted file mode 100644 index 17bca4607c..0000000000 --- a/dist/graphql/context.js +++ /dev/null @@ -1 +0,0 @@ -export{}; \ No newline at end of file diff --git a/dist/graphql/pubsub.js b/dist/graphql/pubsub.js deleted file mode 100755 index 17bca4607c..0000000000 --- a/dist/graphql/pubsub.js +++ /dev/null @@ -1 +0,0 @@ -export{}; \ No newline at end of file diff --git a/dist/graphql/schema/builder.js b/dist/graphql/schema/builder.js deleted file mode 100644 index 70e14e0b1a..0000000000 --- a/dist/graphql/schema/builder.js +++ /dev/null @@ -1 +0,0 @@ -import SchemaBuilder from"@pothos/core";export const builder=new SchemaBuilder({}); \ No newline at end of file diff --git a/dist/graphql/schema/enums/index.js b/dist/graphql/schema/enums/index.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/index.js b/dist/graphql/schema/index.js deleted file mode 100644 index 6c95111080..0000000000 --- a/dist/graphql/schema/index.js +++ /dev/null @@ -1 +0,0 @@ -import{builder}from"./builder.js";import"./enums/index.js";import"./inputs/index.js";import"./interfaces/index.js";import"./scalars/index.js";import"./types/index.js";import"./unions/index.js";export const schema=builder.toSchema({sortSchema:true}); \ No newline at end of file diff --git a/dist/graphql/schema/inputs/index.js b/dist/graphql/schema/inputs/index.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/interfaces/index.js b/dist/graphql/schema/interfaces/index.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/scalars/index.js b/dist/graphql/schema/scalars/index.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/types/Mutation/Mutation.js b/dist/graphql/schema/types/Mutation/Mutation.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/types/Mutation/index.js b/dist/graphql/schema/types/Mutation/index.js deleted file mode 100644 index 7cb9f931d4..0000000000 --- a/dist/graphql/schema/types/Mutation/index.js +++ /dev/null @@ -1 +0,0 @@ -import"./Mutation.js"; \ No newline at end of file diff --git a/dist/graphql/schema/types/Query/Query.js b/dist/graphql/schema/types/Query/Query.js deleted file mode 100644 index 502af84f9a..0000000000 --- a/dist/graphql/schema/types/Query/Query.js +++ /dev/null @@ -1 +0,0 @@ -import{builder}from"../../builder.js";builder.queryType({}); \ No newline at end of file diff --git a/dist/graphql/schema/types/Query/hello.js b/dist/graphql/schema/types/Query/hello.js deleted file mode 100644 index bf37b8d7a3..0000000000 --- a/dist/graphql/schema/types/Query/hello.js +++ /dev/null @@ -1 +0,0 @@ -import{builder}from"../../builder.js";builder.queryField("hello",t=>t.string({args:{name:t.arg.string({required:true})},resolve:async(_parent,args)=>args.name})); \ No newline at end of file diff --git a/dist/graphql/schema/types/Query/index.js b/dist/graphql/schema/types/Query/index.js deleted file mode 100644 index f893816b75..0000000000 --- a/dist/graphql/schema/types/Query/index.js +++ /dev/null @@ -1 +0,0 @@ -import"./Query.js";import"./hello.js"; \ No newline at end of file diff --git a/dist/graphql/schema/types/Subscription/Subscription.js b/dist/graphql/schema/types/Subscription/Subscription.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/graphql/schema/types/Subscription/index.js b/dist/graphql/schema/types/Subscription/index.js deleted file mode 100644 index f9f8dc2385..0000000000 --- a/dist/graphql/schema/types/Subscription/index.js +++ /dev/null @@ -1 +0,0 @@ -import"./Subscription.js"; \ No newline at end of file diff --git a/dist/graphql/schema/types/index.js b/dist/graphql/schema/types/index.js deleted file mode 100644 index e287ee0e55..0000000000 --- a/dist/graphql/schema/types/index.js +++ /dev/null @@ -1 +0,0 @@ -import"./Mutation/index.js";import"./Query/index.js";import"./Subscription/index.js"; \ No newline at end of file diff --git a/dist/graphql/schema/unions/index.js b/dist/graphql/schema/unions/index.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 5a8500de79..0000000000 --- a/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -import closeWithGrace from"close-with-grace";import{createServer}from"./createServer.js";const server=await createServer();await server.ready();closeWithGrace(async({err,signal})=>{if(err!==undefined){server.log.info({err},"Error encountered, gracefully shutting down the server.")}else if(signal!==undefined){server.log.info(`Signal '${signal}' received, gracefully shutting down the server.`)}else{server.log.info("Gracefully shutting down the server.")}await server.close()});server.listen({host:server.envConfig.API_HOST,port:server.envConfig.API_PORT},error=>{if(error){server.log.error({error},"Error encountered while starting the server.");process.exit(1)}}); \ No newline at end of file diff --git a/dist/plugins/drizzleClient.js b/dist/plugins/drizzleClient.js deleted file mode 100644 index 5c03759df3..0000000000 --- a/dist/plugins/drizzleClient.js +++ /dev/null @@ -1 +0,0 @@ -import{drizzle}from"drizzle-orm/postgres-js";import{migrate}from"drizzle-orm/postgres-js/migrator";import fastifyPlugin from"fastify-plugin";import*as drizzleSchema from"../drizzle/schema.js";export const drizzleClient=fastifyPlugin(async fastify=>{const drizzleClient=drizzle({connection:{database:fastify.envConfig.API_POSTGRES_DATABASE,host:fastify.envConfig.API_POSTGRES_HOST,password:fastify.envConfig.API_POSTGRES_PASSWORD,port:fastify.envConfig.API_POSTGRES_PORT,ssl:fastify.envConfig.API_POSTGRES_SSL_MODE,user:fastify.envConfig.API_POSTGRES_USER},schema:drizzleSchema});try{fastify.log.info("Checking the connection to the postgres database.");await drizzleClient.execute("select 1");fastify.log.info("Successfully connected to the postgres database.")}catch(error){throw new Error("Failed to connect to the postgres database.",{cause:error})}fastify.addHook("onClose",async()=>{try{fastify.log.info("Closing all the connections in the postgres connection pool.");await drizzleClient.$client.end();fastify.log.info("Successfully closed all the connections in the postgres connection pool.")}catch(error){fastify.log.error({error},"Something went wrong while trying to close all the connections in the postgres connection pool.")}});if(fastify.envConfig.API_IS_APPLY_DRIZZLE_MIGRATIONS){try{fastify.log.info("Applying the drizzle migration files to the postgres database.");await migrate(drizzleClient,{migrationsFolder:`${import.meta.dirname}/../../drizzle_migrations`});fastify.log.info("Successfully applied the drizzle migrations to the postgres database.")}catch(error){throw new Error("Failed to apply the drizzle migrations to the postgres database.",{cause:error})}}fastify.decorate("drizzleClient",drizzleClient)});export default drizzleClient; \ No newline at end of file diff --git a/dist/plugins/index.js b/dist/plugins/index.js deleted file mode 100644 index 3d58146df5..0000000000 --- a/dist/plugins/index.js +++ /dev/null @@ -1 +0,0 @@ -import fastifyPlugin from"fastify-plugin";import drizzleClient from"./drizzleClient.js";export const plugins=fastifyPlugin(async fastify=>{fastify.register(drizzleClient)});export default plugins; \ No newline at end of file diff --git a/dist/routes/graphql.js b/dist/routes/graphql.js deleted file mode 100644 index 8d72421655..0000000000 --- a/dist/routes/graphql.js +++ /dev/null @@ -1 +0,0 @@ -import fastifyPlugin from"fastify-plugin";import{mercurius}from"mercurius";import{schema}from"../graphql/schema/index.js";export const createContext=async({drizzleClient})=>{return{drizzleClient}};export const graphql=fastifyPlugin(async fastify=>{fastify.register(mercurius,{context:(request,reply)=>createContext({drizzleClient:fastify.drizzleClient,isSubscription:false,log:fastify.log,request,reply}),graphiql:{enabled:fastify.envConfig.API_IS_GRAPHIQL},path:"/graphql",schema,subscription:{context:async(socket,request)=>await createContext({drizzleClient:fastify.drizzleClient,isSubscription:true,log:fastify.log,request,socket}),keepAlive:1e3*30,onConnect:data=>{return true},onDisconnect:ctx=>{},verifyClient:(info,next)=>{next(true)}}})});export default graphql; \ No newline at end of file diff --git a/dist/routes/index.js b/dist/routes/index.js deleted file mode 100644 index 87018d8447..0000000000 --- a/dist/routes/index.js +++ /dev/null @@ -1 +0,0 @@ -import fastifyPlugin from"fastify-plugin";import graphql from"./graphql.js";export const routes=fastifyPlugin(async fastify=>{fastify.register(graphql)});export default routes; \ No newline at end of file