All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 39s
88 lines
1.6 KiB
Plaintext
Executable File
88 lines
1.6 KiB
Plaintext
Executable File
// Don't forget to tell Prisma about your edits to this file using
|
|
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
|
|
// `migrate` is like committing while `push` is for prototyping.
|
|
// Read more about both here:
|
|
// https://www.prisma.io/docs/orm/prisma-migrate
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
binaryTargets = "native"
|
|
}
|
|
|
|
enum Handle {
|
|
x
|
|
threads
|
|
instagram
|
|
facebook
|
|
tiktok
|
|
youtube
|
|
steam
|
|
discord
|
|
twitch
|
|
linkedin
|
|
matrix
|
|
github
|
|
gitea
|
|
forgejo
|
|
gitlab
|
|
bitbucket
|
|
leetcode
|
|
email
|
|
phone
|
|
custom
|
|
}
|
|
|
|
model User {
|
|
id Int @id @default(autoincrement())
|
|
username String @unique
|
|
email String @unique
|
|
hashedPassword String
|
|
salt String
|
|
resetToken String?
|
|
resetTokenExpiresAt DateTime?
|
|
}
|
|
|
|
model Social {
|
|
id Int @id @default(autoincrement())
|
|
name String
|
|
type Handle
|
|
username String
|
|
}
|
|
|
|
model Portrait {
|
|
id Int @id @default(autoincrement())
|
|
fileId String
|
|
}
|
|
|
|
model Resume {
|
|
id Int @id @default(autoincrement())
|
|
fileId String
|
|
}
|
|
|
|
model Titles {
|
|
id Int @id @default(autoincrement())
|
|
titles String[] @default([])
|
|
}
|
|
|
|
model Tag {
|
|
id Int @id @default(autoincrement())
|
|
tag String
|
|
color String
|
|
projects Project[]
|
|
}
|
|
|
|
model Project {
|
|
id Int @id @default(autoincrement())
|
|
title String
|
|
description String @default("No description provided")
|
|
images String[] @default([])
|
|
date DateTime
|
|
links String[] @default([])
|
|
tags Tag[]
|
|
}
|