forked from lxbfYeaaGbeDLMCi/deShanXiao
初始版本,目前线上可用
This commit is contained in:
53
backEnd/src/entity/SeletedServiceList.ts
Normal file
53
backEnd/src/entity/SeletedServiceList.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
import { Entity, Column } from "typeorm";
|
||||
import { BaseEntity } from "@/abstrClass/BaseEntity";
|
||||
|
||||
@Entity("seleted_service_list")
|
||||
export class SeletedServiceList extends BaseEntity {
|
||||
@Column("varchar", {
|
||||
name: "name",
|
||||
comment: "服务项目名称",
|
||||
length: 255,
|
||||
default: "",
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column("int", {
|
||||
comment: "数量",
|
||||
default: 0,
|
||||
})
|
||||
quantity: number;
|
||||
|
||||
@Column("varchar", {
|
||||
name: "unit",
|
||||
comment: "单位",
|
||||
length: 50,
|
||||
default: "",
|
||||
})
|
||||
unit: string;
|
||||
|
||||
@Column("decimal", {
|
||||
name: "price",
|
||||
comment: "售价",
|
||||
precision: 10,
|
||||
scale: 2,
|
||||
default: 0.0,
|
||||
})
|
||||
price: number;
|
||||
|
||||
@Column("varchar", {
|
||||
name: "remark",
|
||||
comment: "备注",
|
||||
length: 500,
|
||||
default: "",
|
||||
})
|
||||
remark: string;
|
||||
|
||||
@Column("int", {
|
||||
name: "retail_id",
|
||||
comment: "所属零售ID",
|
||||
default: 0,
|
||||
})
|
||||
retailId: number;
|
||||
}
|
||||
|
||||
export default SeletedServiceList;
|
||||
Reference in New Issue
Block a user