forked from lxbfYeaaGbeDLMCi/deShanXiao
初始版本,目前线上可用
This commit is contained in:
30
backEnd/src/entity/ServiceCategory.ts
Normal file
30
backEnd/src/entity/ServiceCategory.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Entity, Column } from "typeorm";
|
||||
import { BaseEntity } from "@/abstrClass/BaseEntity";
|
||||
|
||||
@Entity("service_category")
|
||||
export class ServiceCategory extends BaseEntity {
|
||||
@Column("varchar", {
|
||||
name: "name",
|
||||
comment: "商品分类名称",
|
||||
length: 255,
|
||||
default: "",
|
||||
})
|
||||
name: string; // 商品分类名称
|
||||
|
||||
@Column("varchar", {
|
||||
name: "remark",
|
||||
comment: "备注",
|
||||
length: 500,
|
||||
default: "",
|
||||
})
|
||||
remark: string;
|
||||
|
||||
@Column("int", {
|
||||
name: "parentId",
|
||||
comment: "分类ID",
|
||||
default: 0,
|
||||
})
|
||||
parentId: number; // 关联分类
|
||||
}
|
||||
|
||||
export default ServiceCategory;
|
||||
Reference in New Issue
Block a user