|
|
@@ -33,7 +33,7 @@ export class Goods {
|
|
|
@Column({ name: 'category_id3', type: 'int', unsigned: true, default: 0, comment: '三级类别id' })
|
|
|
categoryId3!: number;
|
|
|
|
|
|
- @Column({ name: 'goods_type', type: 'tinyint', unsigned: true, default: 1, comment: '订单类型 1实物产品 2虚拟产品' })
|
|
|
+ @Column({ name: 'goods_type', type: 'smallint', unsigned: true, default: 1, comment: '订单类型 1实物产品 2虚拟产品' })
|
|
|
goodsType!: number;
|
|
|
|
|
|
@Column({ name: 'supplier_id', type: 'int', unsigned: true, nullable: true, comment: '所属供应商id' })
|
|
|
@@ -62,7 +62,7 @@ export class Goods {
|
|
|
@Column({ name: 'sort', type: 'int', unsigned: true, default: 0, comment: '排序' })
|
|
|
sort!: number;
|
|
|
|
|
|
- @Column({ name: 'state', type: 'tinyint', unsigned: true, default: 1, comment: '状态 1可用 2不可用' })
|
|
|
+ @Column({ name: 'state', type: 'smallint', unsigned: true, default: 1, comment: '状态 1可用 2不可用' })
|
|
|
state!: number;
|
|
|
|
|
|
@Column({ name: 'stock', type: 'bigint', unsigned: true, default: 0, comment: '库存' })
|