added Station Add, Delete Update
This commit is contained in:
@@ -7,7 +7,13 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
previewFeatures = ["prismaSchemaFolder"]
|
||||
output = "../../generated/client"
|
||||
output = "../../generated/client"
|
||||
}
|
||||
|
||||
generator zod {
|
||||
provider = "zod-prisma-types"
|
||||
output = "../../generated/zod"
|
||||
createOptionalDefaultValuesTypes = true
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
||||
35
packages/database/prisma/schema/station.prisma
Normal file
35
packages/database/prisma/schema/station.prisma
Normal file
@@ -0,0 +1,35 @@
|
||||
enum BosUse {
|
||||
PRIMARY
|
||||
SECONDARY
|
||||
DUAL_USE
|
||||
}
|
||||
|
||||
enum Country {
|
||||
DE
|
||||
AT
|
||||
CH
|
||||
}
|
||||
|
||||
model Station {
|
||||
id Int @id @default(autoincrement())
|
||||
bosUse BosUse
|
||||
bosCallsign String
|
||||
bosCallsignShort String
|
||||
bosRadioArea String
|
||||
country Country
|
||||
operator String
|
||||
aircraft String
|
||||
aircraftRegistration String
|
||||
aircraftSpeed Int
|
||||
hasWinch Boolean
|
||||
is24h Boolean
|
||||
hasNvg Boolean
|
||||
locationState String
|
||||
locationStateShort String
|
||||
hasRope Boolean
|
||||
fir String
|
||||
latitude Float
|
||||
longitude Float
|
||||
atcCallsign String
|
||||
hideRangeRings Boolean
|
||||
}
|
||||
Reference in New Issue
Block a user