mhmdrioaf / sistem-informasi-manajemen-akademik

This project was created for my theses project and is intended for SMKS Korporasi Garut.
1 stars 0 forks source link

Data Modeling #8

Open mhmdrioaf opened 1 year ago

mhmdrioaf commented 1 year ago

Seller user should have all regular user attributes.

users: {
    uid: string,
    name: string,
    profile_picture_url: string,
    email: string,
    phone_number: int,
    addresses: {
        delivery_address: string,
        public_address: string,
    },
    cart: [
        {
            product_id: string,
            product_name: string,
            product_seller_name: string,
            product_price: int,
        },
    ],
    wishlist: [
        {
            product_id: string,
            product_name: string,
            product_price: int,
            product_seller_name: string,
            product_available: boolean,
        }
    ],
    orders: {
        processed_orders: [
            order_id: string,
            product_id: string,
            product_name: string,
            product_description: string,
            product_seller_name: string,
        ],
        finished_orders: [
            order_id: string,
            product_id: string,
            product_name: string,
            product_description: string,
            product_seller_name: string,
            order_date: date,
        ]
    }
}
mhmdrioaf commented 1 year ago

The data model has been implemented.