Skip to content

Instantly share code, notes, and snippets.

@roniewill
Created August 29, 2019 14:11
Show Gist options
  • Select an option

  • Save roniewill/5b11e1b5218787489c7ba676ebad3b9d to your computer and use it in GitHub Desktop.

Select an option

Save roniewill/5b11e1b5218787489c7ba676ebad3b9d to your computer and use it in GitHub Desktop.
type Product @model {
createdAt: DateTime!
id: ID! @isUnique
description: String!
price: String!
updatedAt: DateTime!
}
type Deliveryman @model {
createdAt: DateTime!
id: ID! @isUnique
name: String!
phone: String!
updatedAt: DateTime!
}
type Delivery @model {
createdAt: DateTime!
id: ID! @isUnique
address: String!
deliveryman: Deliveryman @relation(name: "OfDeliverers")
deliveryDate: String!
product: Product @relation(name: "OfProducts")
description: String!
updatedAt: DateTime!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment