Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
930 B
0
Indexable
Never
export const StoreSchema = new Schema<ICoreStore>({
  code: { type: String, required: true, maxlength: 25 },
  name: { type: String, required: true },
  companyCode: { type: String, required: true },
  address: { type: String, required: false },
  city: { type: String, required: false },
  province: { type: String, required: false },
  country: { type: String, required: false },
  phone: { type: String, required: false },
  email: { type: String, required: false },
  activitiesStartDate: { type: Date, required: false },
  active: { type: Boolean, default: false }
  channelCode: { type: String, required: true },
    city: { type: String, required: true },
    province: { type: String, required: true },
    address: { type: String, required: true },      
    stablishmentNumber: { type: Number, required: false },
    electronicNumberType: { type: String, required: false }
}, {
  timestamps: true
});