mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-06-08 18:04:57 +00:00
57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
// This is your Prisma schema file,
|
||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||
|
||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
||
|
||
// output = "../src/generated/prisma"
|
||
generator client {
|
||
provider = "prisma-client-js"
|
||
binaryTargets = ["native", "debian-openssl-1.1.x"]
|
||
}
|
||
|
||
datasource db {
|
||
provider = "sqlite"
|
||
url = env("DATABASE_URL")
|
||
}
|
||
|
||
model User {
|
||
id Int @id @default(autoincrement())
|
||
telegramId BigInt @unique
|
||
username String?
|
||
firstName String?
|
||
createdAt DateTime @default(now())
|
||
session String?
|
||
hhEmail String?
|
||
hhPhone String?
|
||
resumes Resume[]
|
||
prompt String @default("Ты — помощник по написанию сопроводительных писем. Отвечай только текстом самого письма, без вступлений, ремарок и пояснений. Опирайся на резюме и ничего не выдумывай, чего недостаточно в резюме лучше умолчать. Пиши по короче и простыми словами. В конце письма оставляй все контакты для связи.")
|
||
Settings Settings?
|
||
}
|
||
|
||
model Resume {
|
||
id String @id
|
||
user User @relation(references: [telegramId], fields: [telegramId], onDelete: Cascade)
|
||
data String
|
||
title String @default("")
|
||
telegramId BigInt
|
||
}
|
||
|
||
model Settings {
|
||
telegramId BigInt @id
|
||
user User @relation(references: [telegramId], fields: [telegramId], onDelete: Cascade)
|
||
searchQuery String @default("Vue")
|
||
maxApplies Int @default(1)
|
||
selectedResumeId String?
|
||
}
|
||
|
||
model SkippedVacancy {
|
||
id Int @id @default(autoincrement())
|
||
telegramId BigInt
|
||
href String
|
||
title String
|
||
createdAt DateTime @default(now())
|
||
|
||
@@unique([telegramId, href])
|
||
}
|