Create Listing Schema
Closed this issue · 3 comments
pbp66 commented
Description
Price
Categories
Tags
Size
Color
Condition
Image
Seller
Listing Date
Edit Status
Last Edit Date
pbp66 commented
Schema created. Condition uses an enumerated list type. Several items are saved as strings but this can be updated to their own types if necessary
pbp66 commented
type Listing {
_id: ID!
title: String!
description: String!
price: Float!
categories: [String]
tags: [String]
size: String
color: [String]
condition: Condition!
image: [String] # Link to image in firebase?
seller: User
listing_date: String! # Date represented as a string?
edit_status: Boolean!
edit_dates: [String] # Date represented as a string?
}
pbp66 commented
enum Condition {
NEW
USED - LIKE NEW
USED - GOOD
USED - FAIR
USED - POOR
}