Schema


type File @model {
  contentType: String!
  createdAt: DateTime!
  id: ID! @isUnique
  name: String!
  secret: String!
  size: Int!
  updatedAt: DateTime!
  url: String!
  user: User @relation(name: "UserPictures")
}

type SpotifyData @model {
  id: ID! @isUnique
  user: User! @relation(name: "UserSpotifyData")
  name: String!
  image: String!
}

type User @model {
  active: Boolean @defaultValue(value: true)
  ageRange: [Int!] @defaultValue(value: "[18,100]")
  averageAge: Float @defaultValue(value: 21.0)
  coverPicture: String
  createdAt: DateTime!
  dailySwipeCount: Int @defaultValue(value: 0)
  deleted: Boolean @defaultValue(value: false)
  description: String
  discoverablity: Boolean @defaultValue(value: true)
  distanceUnit: DistanceUnit @defaultValue(value: Km)
  dob: DateTime @defaultValue(value: "2019-11-11T12:00:36.000Z")
  deviceId: String
  devicePlatform: Platform
  email: String
  firstName: String
  gender: Gender
  id: ID! @isUnique
  instagram: Boolean @defaultValue(value: false)
  instaPictures: [String!]
  instaUserName: String @defaultValue(value: "")
  jobTitle: String
  lastName: String
  latitude: Float
  longitude: Float
  updatedAt: DateTime!
  name: String!
  notifyMatches: Boolean @defaultValue(value: true)
  notifyMessages: Boolean @defaultValue(value: true)
  oneSignalPlayerId: String
  password: String
  phoneNo: String
  picturePreferences: [String!]
  profilePicture: String
  profileUrl: String
  role: Role @defaultValue(value: User)
  searchDistance: Float @defaultValue(value: 100.0)
  showMeMale: Boolean @defaultValue(value: true)
  showMeFemale: Boolean @defaultValue(value: true)
  spotify: Boolean @defaultValue(value: false)
  worksAt: String
  targets: [Vote!]! @relation(name: "Target")
  targetedBy: [Vote!]! @relation(name: "TargetedBy")
  reports: [Report!]! @relation(name: "Reported")
  reportedBy: [Report!]! @relation(name: "ReportedBy")
  unmatch: [Unmatch!]! @relation(name: "Unmatched")
  unmatchedBy: [Unmatch!]! @relation(name: "UnmatchedBy")
  sentMessages: [Message!]! @relation(name: "Sent")
  receivedMessages: [Message!]! @relation(name: "Received")
  pictures: [File!]! @relation(name: "UserPictures")
  spotifyData: [SpotifyData!]! @relation(name: "UserSpotifyData")
  proMemberPurchases: [MemberShipPurchases!]! @relation(name: "ProMember")
}

type Vote @model {
  user: User! @relation(name: "Target")
  target: User! @relation(name: "TargetedBy")
  id: ID! @isUnique
  isLiked: Boolean!
  isNewMatch: Boolean! @defaultValue(value: true)
  createdAt: DateTime!
  updatedAt: DateTime!
}

type Report @model {
  user: User! @relation(name: "Reported")
  target: User! @relation(name: "ReportedBy")
  id: ID! @isUnique
  reason: String! @defaultValue(value: "")
  createdAt: DateTime!
  updatedAt: DateTime!
}

type Unmatch @model {
  user: User! @relation(name: "Unmatched")
  target: User! @relation(name: "UnmatchedBy")
  id: ID! @isUnique
  reason: String! @defaultValue(value: "")
  createdAt: DateTime!
  updatedAt: DateTime!
}

type Message @model {
  id: ID! @isUnique
  text: String!
  isUnRead: Boolean! @defaultValue(value: true)
  sender: User! @relation(name: "Sent")
  receiver: User! @relation(name: "Received")
  createdAt: DateTime!
}

type Setting @model {
  googlePlayStoreLink: String
  id: ID! @isUnique
  iosAppStoreLink: String
  timezone: String
}

type OtpVerificationModel @model {
  id: ID! @isUnique
  phoneNo: String
  otp: String
}

type AppConfig @model {
  id: ID! @isUnique
  name: String!
  value: String!
}

type MemberShipPlans @model {
  id: ID! @isUnique
  duration: String!
  type: String!
  price: String!
  purchases: [MemberShipPurchases!]! @relation(name: "ProMemberType")
}

type MemberShipPurchases @model {
  id: ID! @isUnique
  user: User! @relation(name: "ProMember")
  memberShipPlanType: MemberShipPlans! @relation(name: "ProMemberType")
  transactionId: String!
  createdAt: DateTime!
}

results matching ""

    No results matching ""