初始版本,目前线上可用

This commit is contained in:
2025-11-19 12:49:16 +08:00
commit cb7f1c45e8
178 changed files with 30336 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
import { Entity, Column } from "typeorm";
import { BaseEntity } from "@/abstrClass/BaseEntity";
@Entity("service_item")
export class ServiceItem 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: "parentId",
comment: "分类ID",
default: 0,
})
parentId: number; // 关联分类
@Column("int", {
name: "hasDeceased",
comment: "是否有逝者",
default: 1,
})
hasDeceased: number; // 关联分类
}
export default ServiceItem;