mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 03:54:14 +02:00
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// Animal Rights Advocates Discord Bot
|
|
// Copyright (C) 2022 Anthony Berg
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @db.VarChar(255)
|
|
level Int @default(0)
|
|
xp Int @default(0)
|
|
balance Int @default(0)
|
|
lastDaily DateTime
|
|
vegan Boolean @default(false)
|
|
activist Boolean @default(false)
|
|
trusted Boolean @default(false)
|
|
plus Boolean @default(false)
|
|
muted Boolean @default(false)
|
|
Restrict Restrict[]
|
|
Ban Ban[]
|
|
TempBan TempBan[]
|
|
}
|
|
|
|
model Restrict {
|
|
id Int @id @default(autoincrement())
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId String
|
|
startTime DateTime @default(now())
|
|
endedTime DateTime?
|
|
reason String
|
|
}
|
|
|
|
model Ban {
|
|
id Int @id @default(autoincrement())
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId String
|
|
time DateTime @default(now())
|
|
active Boolean @default(true)
|
|
reason String
|
|
}
|
|
|
|
model TempBan {
|
|
id Int @id @default(autoincrement())
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId String
|
|
startTime DateTime @default(now())
|
|
endedTime DateTime
|
|
active Boolean @default(true)
|
|
reason String
|
|
}
|