From 02f1ce8b96fa4edc47542ee861b285aa005dc24a Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sun, 2 Oct 2022 19:42:25 +0800 Subject: [PATCH] chore: scaffold directories for each project --- apps/portal/prisma/schema.prisma | 33 +++++++++++++------ .../src/components/offers/OffersTitle.tsx | 3 ++ .../questions/QuestionBankTitle.tsx | 5 +++ .../components/resumes/ResumeReviewsTitle.tsx | 5 +++ apps/portal/src/pages/offers/index.tsx | 4 ++- apps/portal/src/pages/questions/index.tsx | 4 ++- apps/portal/src/pages/resumes/index.tsx | 4 ++- package.json | 1 + 8 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 apps/portal/src/components/offers/OffersTitle.tsx create mode 100644 apps/portal/src/components/questions/QuestionBankTitle.tsx create mode 100644 apps/portal/src/components/resumes/ResumeReviewsTitle.tsx diff --git a/apps/portal/prisma/schema.prisma b/apps/portal/prisma/schema.prisma index 38d2e599..f1971761 100644 --- a/apps/portal/prisma/schema.prisma +++ b/apps/portal/prisma/schema.prisma @@ -1,5 +1,4 @@ -// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema +// Refer to the Prisma schema docs: https://pris.ly/d/prisma-schema generator client { provider = "prisma-client-js" @@ -7,26 +6,22 @@ generator client { datasource db { provider = "postgresql" - // NOTE: When using postgresql, mysql or sqlserver, uncomment the @db.text annotations in model Account below - // Further reading: - // https://next-auth.js.org/adapters/prisma#create-the-prisma-schema - // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string url = env("DATABASE_URL") } -// Necessary for Next auth +// Necessary for NextAuth. model Account { id String @id @default(cuid()) userId String type String provider String providerAccountId String - refresh_token String? //@db.Text - access_token String? //@db.Text + refresh_token String? @db.Text + access_token String? @db.Text expires_at Int? token_type String? scope String? - id_token String? //@db.Text + id_token String? @db.Text session_state String? user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@ -74,3 +69,21 @@ enum TodoStatus { INCOMPLETE COMPLETE } + +// Start of Resumes project models. +// Add Resumes project models here, prefix all models with "Resumes", +// use camelCase for field names, and try to name them consistently +// across all models in this file. +// End of Resumes project models. + +// Start of Offers project models. +// Add Offers project models here, prefix all models with "Offer", +// use camelCase for field names, and try to name them consistently +// across all models in this file. +// End of Offers project models. + +// Start of Questions project models. +// Add Questions project models here, prefix all models with "Questions", +// use camelCase for field names, and try to name them consistently +// across all models in this file. +// End of Questions project models. diff --git a/apps/portal/src/components/offers/OffersTitle.tsx b/apps/portal/src/components/offers/OffersTitle.tsx new file mode 100644 index 00000000..a28d1a69 --- /dev/null +++ b/apps/portal/src/components/offers/OffersTitle.tsx @@ -0,0 +1,3 @@ +export default function OffersTitle() { + return

Offers Research

; +} diff --git a/apps/portal/src/components/questions/QuestionBankTitle.tsx b/apps/portal/src/components/questions/QuestionBankTitle.tsx new file mode 100644 index 00000000..133ea3e1 --- /dev/null +++ b/apps/portal/src/components/questions/QuestionBankTitle.tsx @@ -0,0 +1,5 @@ +export default function QuestionBankTitle() { + return ( +

Interview Questions

+ ); +} diff --git a/apps/portal/src/components/resumes/ResumeReviewsTitle.tsx b/apps/portal/src/components/resumes/ResumeReviewsTitle.tsx new file mode 100644 index 00000000..6dfa642b --- /dev/null +++ b/apps/portal/src/components/resumes/ResumeReviewsTitle.tsx @@ -0,0 +1,5 @@ +export default function ResumeReviewsTitle() { + return ( +

Resume Reviews {id}

+ ); +} diff --git a/apps/portal/src/pages/offers/index.tsx b/apps/portal/src/pages/offers/index.tsx index a57d4f94..4fa89c65 100644 --- a/apps/portal/src/pages/offers/index.tsx +++ b/apps/portal/src/pages/offers/index.tsx @@ -1,8 +1,10 @@ +import OffersTitle from '~/components/offers/OffersTitle'; + export default function OffersHomePage() { return (
-

Offers Research

+
); diff --git a/apps/portal/src/pages/questions/index.tsx b/apps/portal/src/pages/questions/index.tsx index c3e45c7e..f8fbc5ec 100644 --- a/apps/portal/src/pages/questions/index.tsx +++ b/apps/portal/src/pages/questions/index.tsx @@ -1,8 +1,10 @@ +import QuestionBankTitle from '~/components/questions/QuestionBankTitle'; + export default function QuestionsHomePage() { return (
-

Interview Questions

+
); diff --git a/apps/portal/src/pages/resumes/index.tsx b/apps/portal/src/pages/resumes/index.tsx index b53b4070..fbc48f49 100644 --- a/apps/portal/src/pages/resumes/index.tsx +++ b/apps/portal/src/pages/resumes/index.tsx @@ -1,8 +1,10 @@ +import ResumeReviewsTitle from '~/components/resumes/ResumeReviewsTitle'; + export default function ResumeHomePage() { return (
-

Resume Reviews

+
); diff --git a/package.json b/package.json index c989547a..b14890f6 100755 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ ], "scripts": { "build": "turbo build", + "ci": "yarn lint && yarn tsc", "clean": "turbo clean", "dev": "turbo dev --filter=portal...", "dev:ui": "turbo dev --filter=storybook...",