Skip to content

employee_collection

nattapon.r edited this page Feb 8, 2017 · 2 revisions

A collection name's "employees"

An employees collection keep relation between user & business.

/**
 * Employee
 */
export class Employee implements INotiableObject {
    _id: string;
    userId: string;
    businessId: string;
    status: EmployeeStatus;
}

export enum EmployeeStatus {
    not_verify = 0,
    verified = 1
}

Sample

{
    "_id" : ObjectId("57f8a8d41407923dc0ba0daa"),
    "status" : 0,
    "userId" : "57f889661407923dc0ba0da1",
    "businessId" : "57984c3586ac4435408c4c70"
}
Clone this wiki locally