import { Document } from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; @Schema() export class Shipper extends Document { //_id?:string; @Prop({ default:"未设置" }) coname: string; @Prop({ default:"XXX" }) people:string; @Prop() phone: string; @Prop() bank:string @Prop() region:string //计费方式 0计件 1计方 2计重 @Prop({ default:0, }) paytype:number //计费单价 @Prop({ default:0, }) paybox:number @Prop({ default:0, }) paysize:number @Prop({ default:0, }) payweight:number } export const ShipperSchema = SchemaFactory.createForClass(Shipper);