forked from boid-com/boidValidator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
85 lines (80 loc) · 1.58 KB
/
schema.graphql
File metadata and controls
85 lines (80 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
type Device {
id: ID! @id
power: Float
rvnPower: Float
boincPower: Float
createdAt: DateTime! @createdAt
powerRatings: [DevicePowerRating]
rvnShares: [shareData]
workUnits: [workUnit]
wcgid: String @unique
rvnid: String @unique
wcgKey: String
}
type shareData {
id: ID! @id
createdAt: DateTime! @createdAt
shareId:Int!
time: DateTime!
valid: Boolean! @default(value:true)
difficulty:Float!
shareDifficulty:Float!
device: Device
shareHash: String! @unique
power: Float
deviceId: String!
}
type DevicePowerRating {
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
power: Float!
device: Device
rvnPower: Float
boincPower: Float
roundTime: DateTime
}
type CronJob {
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
name: String! @unique
enabled: Boolean! @default(value:true)
runs: [CronRun!]!
}
type CronRun {
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
job: CronJob!
runtime: Int
results: Json
errors: Json
jobName: String
}
type workUnit {
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
validatedAt: DateTime
appName: String
claimedCredit: Float
cpuTime: Float
elapsedTime: Float
exitStatus: Int
grantedCredit: Float
deviceId: Int
deviceName: String
workUnitId: Int @unique
resultId: Int
name: String
outcome: Int
receivedTime: DateTime
reportDeadline: DateTime
sentTime: DateTime
serverState: Int
validateState: Int
fileDeleteState: Int
device: Device
power: Float
}