-
Notifications
You must be signed in to change notification settings - Fork 15
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
hackathon registration added #146
base: develop
Are you sure you want to change the base?
Conversation
LovedeepSingh19
commented
Jan 18, 2024
- Image resizing bug fixed in output logs
- Hackathon registration added
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
model Event { | ||
id String @id @default(uuid()) | ||
slug String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unique on slug
id String @id @default(uuid()) | ||
slug String? | ||
title String? | ||
desc String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see if long text data type is supported.
banner String? | ||
eventUsers EventUser[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a field for time of the event.
Event Event? @relation(fields: [eventId], references: [id]) | ||
eventId String? | ||
|
||
@@unique([userId]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unique userId and userId
.mutation(async ({ ctx, input }) => { | ||
const alreadyRegistered = await ctx.prisma.event.findFirst({ | ||
where: { | ||
id: input.registerId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this as per naming convention
760bc32
to
8d4361a
Compare