WelcomeRequirementsIntroductionFolder StructureInstallationData StructureServer and ResolversFrontend ImplementationDevelopmentDeploymentSupportFAQ
Data Structure
In our product we have used three document/table
- posts
- category
- users
Posts
{id: IDtitle: Stringslug: Stringcontent: Stringstatus: Stringauthor: AuthorauthorId: IDimage: Imageprice: Floatlocation: LocationformattedLocation: Locationdistance: Floatcategories: [Category]gallery: [Image]isNegotiable: BooleanfavouritedBy: [String]condition: Booleanrelated(limit: Int): [Post]contactNumber: StringcreatedAt: DateupdatedAt: Date}
Category
{id: ID!slug: Stringname: Stringvalue: IDlabel: Stringimage: Imageposts(limit: Int, page: Int ): PostWithCountcreatedAt: DateupdatedAt: Date}
Users
{id: IDemail: Stringusername: Stringmobile: [Mobile]image: Imageaddress: Stringwebsite: Stringname: Stringposts(limit: Int, page: Int): PostWithCountfavourite(limit: Int, page: Int): PostWithCountdraft(limit: Int, page: Int) : PostWithCountcreatedAt: DateupdatedAt: Date}