Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
136 lines (119 sloc) 2.98 KB
type Link {
id: ID! @id
createdAt: DateTime! @createdAt
description: String!
url: String!
postedBy: User
votes: [Vote!]!
}
type User {
id: ID! @id
name: String!
email: String! @unique
password: String!
links: [Link!]!
votes: [Vote!]!
flightControllers: [FlightController!]! @relation(name: "AddedFlightControllers")
editedFlightControllers: [FlightController!]! @relation(name: "EditedFlightControllers")
addedMerchants: [Merchant!]! @relation(name: "AddedMerchants")
editedMerchants: [Merchant!]! @relation(name: "EditedMerchants")
AddedFlightControllers: [FlightControllerMerchantLink!]! @relation(name: "AddedFlightControllerMerchantLinks")
}
type Vote{
id: ID! @id
link: Link!
user: User!
}
type FlightController{
id: ID! @id
createdAt: DateTime @createdAt
updatedAt: DateTime @updatedAt
postedBy: User @relation(name: "AddedFlightControllers")
updatedBy: User @relation(name: "EditedFlightControllers")
merchantLinks: [FlightControllerMerchantLink!]! @relation(name: "MerchantLinkFlightControllers")
name: String
disabled: Boolean
releaseDate: DateTime
uarts: Int
gyroOne: Gyro
gyroTwo: Gyro
weightInGrams: Float
cpu: CPU
description: String
dimensions: String
holePattern: HolePattern
voltageInputMin: Float
voltageInputMax: Float
osd: Boolean
barometer: Baro
spektrumPort: Boolean
ledWS2812Support: Boolean
beeperOnBoard: Boolean
antiVibrationGrommets: Boolean
builtInReceiver: ReceiverProtocol
cameraControl: Boolean
pdb: Boolean
threeVoltOutput: Float
fiveVoltOutput: Float
eightVoltOutput: Float
nineVoltOutput: Float
onBoardFlash: Int
sdCardSlot: Boolean
fourInOneConnector: Boolean
currentSensorRating: Float
maxCurrent: Float
holeSize: HoleSize
}
type Merchant{
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime @updatedAt
postedBy: User @relation(name: "AddedMerchants")
updatedBy: User @relation(name: "EditedMerchants")
flightControllers: [FlightControllerMerchantLink] @relation(name: "MerchantFlightControllers")
name: String
url: String
affiliateId: String
disabled: Boolean
}
type FlightControllerMerchantLink{
id: ID! @id
merchant: Merchant! @relation(name: "MerchantFlightControllers")
flightController: FlightController! @relation(name: "MerchantLinkFlightControllers")
url: String!
price: Float!
inStock: Boolean
postedBy: User! @relation(name: "AddedFlightControllerMerchantLinks")
createdAt: DateTime! @createdAt
updatedAt: DateTime @updatedAt
}
enum ReceiverProtocol{
CROSSFIRE
FRSKY
FLYSKY
SPEKTRUM
}
enum HolePattern{
SIXTEEN # 16x16
TWENTY # 20x20
THIRTY # 30.5x30.5
}
enum HoleSize{
M3
M2
}
enum Gyro{
MPU6000
ICM20689
}
enum CPU{
STM32F405
STM32H7400
STM32F745
STM32F411
STM32F722
}
enum Baro{
BMP388
BMP280
}
You can’t perform that action at this time.