Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (45 sloc) 1.06 KB
type User {
id: ID! @unique
createdAt: DateTime!
login: String! @unique
name: String!
balance: Int @default(value: 0)
stripeID: String
isBanned: Boolean @default(value: "false")
createdBounties: [Bounty!]! @relation(name: "Created")
savedBounties: [Bounty!]! @relation(name: "Saved")
claims: [Claim!]! @relation(name: "ClaimedBounties")
}
type Bounty {
id: ID! @unique
createdAt: DateTime!
createdBy: User! @relation(name: "Created")
expirationDate: DateTime!
amount: Int!
issueURL: String!
issueNumber: Int!
repository: String!
state: BountyState! @default(value: OPEN)
savedBy: [User!]! @relation(name: "Saved")
claim: Claim
}
type Claim {
id: ID! @unique
createdAt: DateTime!
createdBy: User! @relation(name: "ClaimedBounties")
issueURL: String!
pullRequestURL: String!
state: ClaimState! @default(value: PENDING)
bounties: [Bounty!]!
}
enum BountyState {
OPEN,
PAUSED,
CLAIMED,
EXPIRED
}
enum ClaimState {
PENDING,
ACCEPTED,
REJECTED
}
You can’t perform that action at this time.