Files
hh-auto-reply/prisma/schema.prisma
Oscar e752a563e2
Some checks are pending
Deploy / deploy (push) Has started running
🆕 feat(src/hh/scraper): добавляет кэширование вакансий для улучшения производительности поиска
♻️ chore(src/hh/handlers/region): очищает кэш вакансий при изменении региона

♻️ chore(src/hh/bot-commands): очищает кэш вакансий при сбросе запроса

♻️ chore(src/hh/handlers/settings): очищает кэш вакансий при изменении режима поиска

♻️ chore(src/hh/handlers/resume): очищает кэш вакансий при сохранении резюме
2026-06-11 15:49:50 +03:00

60 lines
2.1 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?
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?
searchMode String @default("text")
area String?
excludedWords String?
}
model SkippedVacancy {
id Int @id @default(autoincrement())
telegramId BigInt
href String
title String
createdAt DateTime @default(now())
@@unique([telegramId, href])
}