-
Notifications
You must be signed in to change notification settings - Fork 0
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
updated roles and company schema #139
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
lgtm 🌞
packages/db/src/schema/companies.ts
Outdated
}) satisfies z.ZodType< | ||
Omit<typeof Company.$inferInsert, "id" | "createdAt" | "updatedAt"> | ||
>; | ||
averageHourlyPay: z.number(), |
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.
Ok so decimal in drizzle still means string lmao, so we have the zod schema would have to just require them to be strings. See this
So you will have to change the create_Schema for both role and company to have z.string() for whatever we mark as decimal
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.
fr this time
Description
Updated the role and company schema to include averages for ratings and for pay.
Motivation and Context
Makes it so that we don't have to take a very long approach to find the average for things.
Closes #137
How has this been tested?
Screenshots (if appropriate):
Types of changes
pnpm db:generate
and verified generated SQL migration files inpackages/db/drizzle
Checklist: