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

Updated role schema #144

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/app/(pages)/(dashboard)/roles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Roles() {
<>
{roles.isSuccess && roles.data.length > 0 && (
<div className="flex h-[100dvh] w-[95%] gap-4 divide-x divide-[#474747] pl-4 pr-4 lg:w-[95%]">
<div className="w-[28%] gap-3">
<div className="w-[28%] gap-3 overflow-auto p-1">
{roles.data.map((role, i) => {
return (
<div key={role.id} onClick={() => setSelectedRole(role)}>
Expand Down
12 changes: 12 additions & 0 deletions packages/db/drizzle/0004_massive_moonstone.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ALTER TABLE "company" ADD COLUMN "averageHourlyPay" numeric;--> statement-breakpoint
ALTER TABLE "company" ADD COLUMN "averageOverallRating" numeric;--> statement-breakpoint
ALTER TABLE "company" ADD COLUMN "averageCultureRating" numeric;--> statement-breakpoint
ALTER TABLE "company" ADD COLUMN "averageSupervisorRating" numeric;--> statement-breakpoint
ALTER TABLE "company" ADD COLUMN "averageInterviewRating" numeric;--> statement-breakpoint
ALTER TABLE "company" ADD COLUMN "averageInterviewDifficulty" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageHourlyPay" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageOverallRating" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageCultureRating" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageSupervisorRating" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageInterviewRating" numeric;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "averageInterviewDifficulty" numeric;
2 changes: 2 additions & 0 deletions packages/db/drizzle/0005_loving_cable.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "company" ADD COLUMN "totalReviews" integer;--> statement-breakpoint
ALTER TABLE "role" ADD COLUMN "totalReviews" integer;
Loading