Skip to content

feedback_collection

nattapon.r edited this page Oct 19, 2016 · 3 revisions

A collection name's "feedback"

feedback collection จัดเก็บข้อมูล feedback ของ application

export enum Topic {
    FEEDBACK = 0,
    PROBLEM,
    BUY_REPORT,
    BUY_ADS
}

export class Feedback {
    _id: mongodb.ObjectID;
    topic: Topic;
    sender_name: string;
    sender_email: string;
    message: string;
    images: string[];
}

Sample

{
    "_id" : ObjectId("57f88ab11407923dc0ba0da3"),
    "topic" : 0,
    "sender_name" : "Nattapon",
    "sender_email" : "",
    "message" : "test send feedback",
    "images" : []
}
Clone this wiki locally