mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-02-26 13:31:37 +01:00
Removed mostly broken terminal scratch stuff, comments left for other users who want to work on it
This commit is contained in:
parent
621bdb0ac5
commit
a006449c5d
@ -11,35 +11,36 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
chipId String @unique
|
||||
id Int @id @default(autoincrement())
|
||||
chipId String @unique
|
||||
accessCode String
|
||||
cars Car[]
|
||||
carOrder Int[] // Order of cars
|
||||
unusedTickets UserItem[]
|
||||
tutorials Boolean[]
|
||||
userBanned Boolean @default(false)
|
||||
userBanned Boolean @default(false)
|
||||
bookmarks Int[]
|
||||
ScratchSheet ScratchSheet[]
|
||||
currentSheet Int @default(0)
|
||||
lastSheet Int @default(0)
|
||||
// ScratchSheet ScratchSheet[]
|
||||
currentSheet Int @default(0)
|
||||
lastSheet Int @default(0)
|
||||
}
|
||||
|
||||
model ScratchSheet {
|
||||
id Int @id @default(autoincrement())
|
||||
User User @relation(fields: [userId], references: [id])
|
||||
userId Int @unique
|
||||
squares ScratchSquare[]
|
||||
}
|
||||
// Not working yet, removing from schema
|
||||
// model ScratchSheet {
|
||||
// id Int @id @default(autoincrement())
|
||||
// User User @relation(fields: [userId], references: [id])
|
||||
// userId Int @unique
|
||||
// squares ScratchSquare[]
|
||||
// }
|
||||
|
||||
model ScratchSquare {
|
||||
id Int @id @default(autoincrement())
|
||||
Sheet ScratchSheet @relation(fields: [sheetId], references: [id])
|
||||
sheetId Int
|
||||
category Int
|
||||
itemId Int
|
||||
earned Boolean
|
||||
}
|
||||
// model ScratchSquare {
|
||||
// id Int @id @default(autoincrement())
|
||||
// Sheet ScratchSheet @relation(fields: [sheetId], references: [id])
|
||||
// sheetId Int
|
||||
// category Int
|
||||
// itemId Int
|
||||
// earned Boolean
|
||||
// }
|
||||
|
||||
model UserItem {
|
||||
dbId Int @id @default(autoincrement())
|
||||
|
@ -3,7 +3,7 @@ import { Module } from "../module";
|
||||
import * as wm from "../wmmt/wm.proto";
|
||||
import * as svc from "../wmmt/service.proto";
|
||||
import { prisma } from "..";
|
||||
import { Car, ScratchSheet, ScratchSquare, User } from "@prisma/client";
|
||||
import { Car, User } from "@prisma/client";
|
||||
import { Config } from "../config";
|
||||
import Long from "long";
|
||||
import { userInfo } from "os";
|
||||
|
Loading…
x
Reference in New Issue
Block a user