// 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 generator client { provider = "prisma-client" output = "../generated/prisma" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model User { id Int @id @default(autoincrement()) // Внутренний ID базы telegramId BigInt @unique // ID из Телеграма (BigInt обязателен) username String? // Никнейм (может не быть) fio String? // ФИО (Имя + Фамилия) createdAt DateTime @default(now()) // Дата первого обращения к боту @@map("users") // Необязательно: делает имя таблицы в БД "users" (множественное число) }