Files
hh-auto-reply/prisma/schema.prisma
2026-05-28 23:45:24 +03:00

56 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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?
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])
}