Created
August 29, 2019 14:11
-
-
Save roniewill/5b11e1b5218787489c7ba676ebad3b9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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