diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d11a66b..74a7d7c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,69 +1,77 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" } datasource db { - provider = "mongodb" - url = env("DATABASE_URL") + provider = "mongodb" + url = env("DATABASE_URL") } model Post { - id String @id @map("_id") @default(uuid()) - type String - name String - reviewContents String - image String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + id String @id @default(uuid()) @map("_id") + type String + name String + reviewContents String + image String + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt - createdBy User @relation(fields: [createdById], references: [id]) - createdById String + createdBy User @relation(fields: [createdById], references: [id]) + createdById String - @@index([name]) + @@index([name]) +} + +model SocialLink { + id String @id @default(uuid()) @map("_id") + name String + url String + + @@index([name]) } // Necessary for Next auth model Account { - id String @id @map("_id") @default(cuid()) - userId String - type String - provider String - providerAccountId String - refresh_token String? // @db.Text - access_token String? // @db.Text - expires_at Int? - token_type String? - scope String? - id_token String? // @db.Text - session_state String? - user User @relation(fields: [userId], references: [id], onDelete: Cascade) + id String @id @default(cuid()) @map("_id") + userId String + type String + provider String + providerAccountId String + refresh_token String? // @db.Text + access_token String? // @db.Text + expires_at Int? + token_type String? + scope String? + id_token String? // @db.Text + session_state String? + user User @relation(fields: [userId], references: [id], onDelete: Cascade) - @@unique([provider, providerAccountId]) + @@unique([provider, providerAccountId]) } model Session { - id String @id @map("_id") @default(cuid()) - sessionToken String @unique - userId String - expires DateTime - user User @relation(fields: [userId], references: [id], onDelete: Cascade) + id String @id @default(cuid()) @map("_id") + sessionToken String @unique + userId String + expires DateTime + user User @relation(fields: [userId], references: [id], onDelete: Cascade) } model User { - id String @id @map("_id") @default(cuid()) - name String? - email String? @unique - emailVerified DateTime? - image String? - accounts Account[] - sessions Session[] - posts Post[] + id String @id @default(cuid()) @map("_id") + name String? + email String? @unique + emailVerified DateTime? + image String? + accounts Account[] + sessions Session[] + posts Post[] } model VerificationToken { - identifier String @id @map("_id") - token String @unique - expires DateTime + identifier String @id @map("_id") + token String @unique + expires DateTime - @@unique([identifier, token]) + @@unique([identifier, token]) } diff --git a/src/components/ProjectsCard.tsx b/src/components/ProjectsCard.tsx index e5adc4d..13f60cc 100644 --- a/src/components/ProjectsCard.tsx +++ b/src/components/ProjectsCard.tsx @@ -3,7 +3,6 @@ import Link from "next/link" type ProjectCardProps = { name: string, subHeading?: string, - key: string, description: string, urlTo: string } @@ -11,8 +10,8 @@ type ProjectCardProps = { export default function ProjectCard(props: ProjectCardProps) { return ( -
{props.name}
{props.subHeading}
diff --git a/src/components/SocialCard.tsx b/src/components/SocialCard.tsx new file mode 100644 index 0000000..acbd252 --- /dev/null +++ b/src/components/SocialCard.tsx @@ -0,0 +1,16 @@ +import Link from "next/link" + +type SocialCardProps = { + name: string, + url: string +} + +export default function SocialMediaCard(props: SocialCardProps) { + return ( +Try again later :(
+