|
@@ -74,6 +74,12 @@ export class Goods {
|
|
|
@UpdateDateColumn({ name: 'updated_at', type: 'timestamp', comment: '更新时间' })
|
|
@UpdateDateColumn({ name: 'updated_at', type: 'timestamp', comment: '更新时间' })
|
|
|
updatedAt!: Date;
|
|
updatedAt!: Date;
|
|
|
|
|
|
|
|
|
|
+ @Column({ name: 'created_by', type: 'int', unsigned: true, nullable: true, comment: '创建用户ID' })
|
|
|
|
|
+ createdBy!: number | null;
|
|
|
|
|
+
|
|
|
|
|
+ @Column({ name: 'updated_by', type: 'int', unsigned: true, nullable: true, comment: '更新用户ID' })
|
|
|
|
|
+ updatedBy!: number | null;
|
|
|
|
|
+
|
|
|
@ManyToOne(() => GoodsCategory, { nullable: true })
|
|
@ManyToOne(() => GoodsCategory, { nullable: true })
|
|
|
@JoinColumn({ name: 'category_id1', referencedColumnName: 'id' })
|
|
@JoinColumn({ name: 'category_id1', referencedColumnName: 'id' })
|
|
|
category1!: GoodsCategory | null;
|
|
category1!: GoodsCategory | null;
|