Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Sex {
- NOT_SPECIFIC
- MALE
- FEMAIL
- }
- enum LoginMethod {
- FACEBOOK
- GOOGLE
- EMAIL
- PHONE
- }
- enum UserGroup {
- USER
- ADMIN
- PARTNER
- }
- enum Enabled {
- ENABLE
- DISABLE
- }
- enum OnlineStatus {
- Offline
- Online
- }
- enum PlaceSource {
- GOOGLE_PLACE
- ONEMAP
- }
- enum CreateSide {
- FRONTEND
- BACKEND
- }
- type User @model {
- # Required system field:
- id: ID! @isUnique # read-only (managed by Graphcool)
- # Optional system fields (remove if not needed):
- createdAt: DateTime! # read-only (managed by Graphcool)
- updatedAt: DateTime! # read-only (managed by Graphcool)
- facebookUserId: String @isUnique
- email: String # optional, because it's obtained from Facebook API
- password: String
- username: String @isUnique
- firstName: String
- lastName: String
- displayName: String
- bio: String
- sex: Sex
- birthdate: String
- mobile: String
- mobileVerification: Boolean
- city: String
- country: String
- photoURL: String
- loginMethod: [LoginMethod!]
- registrationDate: String
- group: [UserGroup!]
- accountStatus: Enabled!
- accountVerification: Boolean
- createBy: User @relation(name: "CreateByUser")
- lastSeen: DateTime
- onlineStatus: OnlineStatus!
- modifiedPlace: [Place!]! @relation(name: "UserModifyPlace")
- places: [Place!]! @relation(name: "UserOnPlace")
- stories: [Story!]! @relation(name: "UserOnStory")
- followers: [User!]! @relation(name: "UserFollowerUser")
- likePlaces: [Place!]! @relation(name: "UserLikePlace")
- checkedInPlaces: [Place!]! @relation(name: "UserCheckInPlace")
- }
- type Place @model {
- id: ID! @isUnique
- createdAt: DateTime!
- updatedAt: DateTime!
- source: PlaceSource!
- sourceId: String
- createSide: CreateSide!
- placeName: String
- locationLat: Float
- locationLong: Float
- addressAreaDistrict: String
- addressCityTown: String
- addressStateProvince: String
- addressCountry: String
- addressPostalCode: String
- phoneNumber: String
- website: String
- facebook: String
- line: String
- openingHrs: String
- pictureURL: [String!]
- modifyBy: User @relation(name: "UserModifyPlace")
- user: User! @relation(name: "UserOnPlace")
- stories: [Story!]! @relation(name: "PlaceOnStory")
- usersCheckedIn: [User!]! @relation(name: "UserCheckInPlace")
- usersLike: [User!]! @relation(name: "UserLikePlace")
- }
- type Story @model {
- id: ID! @isUnique
- createdAt: DateTime!
- updatedAt: DateTime!
- user: User! @relation(name: "UserOnStory")
- place: Place! @relation(name: "PlaceOnStory")
- }
Add Comment
Please, Sign In to add comment