Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 1.2 KB

README.md

File metadata and controls

55 lines (47 loc) · 1.2 KB

client-food

API SERVER

Food

Auth

Server github link:

https://github.com/Kelkifa/xamarin-server-food

Admin Account

username: Admin
passwrod: 1234

API Food schema

Food

const foods = new Schema(
    {
        _id: { type: String },
        name: { type: String },
        type: { type: String },
        image: { type: String },
        description: { type: String },
        production: { type: String },
        cost: { type: Number },
        unit: { type: String },
        minMass: { type: String, default: "0kg" },
        maxMass: { type: String, default: "0kg" }
    },

Cart

const carts = new Schema(
    {
        _id: { type: String },
        food: { type: Food },
        soLuong: {type: Number}
    }
)