Skip to content

Kendall-H/crm-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLs

CSS LIbray
  • Vuetify

Customer

Customer Attributes:
  • firstName (string)
  • lastName (string)
  • email (string)
  • phone (string)
  • status (string)
  • notes [string]
  • userId User.userId
Customer Schema:
const customerSchema = Schema({
    firstName: {
        type: String,
        required: true,
    },
    lastName: {
        type: String,
        required: true,
    },
    email: {
        type: String,
        required: true
    },
    phone: {
        type: String,
        required: true
    },
    notes: [String],
    status: String,
    userId: {type: Schema.Types.ObjectId, ref: 'User'}
})

Collections:

  • customers
Name Method Path
Retrieve customer collection GET /customers
Create new customer POST /customers
Update customer PUT /customers/<id>
Update customer note PUT /customers/<id>/
Delete customer DELETE /customers/<id>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published