const mongoose = require("mongoose");

const OrdersSchema = new mongoose.Schema({
  orderNumber: {
    type: String,
  },
  orderDateTime: {
    type: Date,
  },
  customerId: {
    type: String,
  },
  customerName: {
    type: String,
  },
  Items: {
    type: Array,
  },
  Amount: {
    type: Number,
  },
  Tickets: {
    type: Number,
  },
  address: {
    type: String,
  },
  country: {
    type: String,
  },
  city: {
    type: String,
  },
  phone: {
    type: String,
  },
  paymentType: {
    type: String,
  },
  IsActive: {
    type: Boolean,
  },
  IsDelete: {
    type: Boolean,
  },
  CreatedBy: {
    type: String,
  },
  CreatedOn: {
    type: Date,
  },
  ModifiedBy: {
    type: String,
    default: null,
  },
  ModifiedOn: {
    type: Date,
    default: null,
  },
});

const Orders = mongoose.model("Orders", OrdersSchema);

module.exports = Orders;
