Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat/club events' schema #213

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

feat/club events' schema #213

wants to merge 3 commits into from

Conversation

KambojRajan
Copy link

No description provided.

Comment on lines 54 to 56
clubMembers: many(clubMembers),
clubSocials: many(clubSocials),
clubEvents: many(events),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
clubMembers: many(clubMembers),
clubSocials: many(clubSocials),
clubEvents: many(events),
clubEvents: many(events),
clubMembers: many(clubMembers),
clubSocials: many(clubSocials),

This is alphabetically ordered

description: varchar('description', { length: 512 }),
startDate: timestamp('date').notNull(),
endDate: timestamp('date').notNull(),
clubId: integer('club_id')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a event specific to a club, name the table club_events

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An event may or may not be related to a club, such as a convocation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then make the club_id nullable.

@@ -20,3 +20,4 @@ export * from './sponsored-research-projects.schema';
export * from './staff.schema';
export * from './student-academic-details.schema';
export * from './students.schema';
export * from './events.schema';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is also alphabetically ordered. And in light of the previous comment, this would be club-events.schema

Comment on lines 30 to 34
howToJoinUs: varchar('how_to_join_us').notNull(),
whyToJoinUs: varchar('why_to_join_us').notNull(),
notifications: varchar('notifications')
.array()
.default(sql`'{}'`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do this in a different PR please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants