Skip to content

Database Design

Jiaosixing edited this page Oct 15, 2018 · 16 revisions

Description

All collection name, fields name follows naming format: All lower-case, separate words using _.

User

{
     "user_id": {
   	"username": "<USER NAME: length 4-20 string with only a-z, A-Z, 0-9, ~!@#$%^&*-=>", 
  	"password": "",
        “contact_forms”:<contact_form_id>",
  	"email": "<USER EMAIL>",
   	"phone_number": "<USER PHONE>"
        "products_for_sale":<product_id>",
        "liked_products":<product_id>",
        "buying_offers":<product_id>",
    }
}

Example refer to http://ieng6.ucsd.edu/~cs110x///static/res/AugcastDatabaseSchemaModelv2.pdf

Clone this wiki locally