新增租户ID

This commit is contained in:
xiaopeng 2025-02-04 18:02:58 +08:00
parent 9c6894f1d0
commit 9f40cacb11

View File

@ -3,6 +3,7 @@ import {
UpdateDateColumn,
CreateDateColumn,
PrimaryGeneratedColumn,
Column,
} from 'typeorm';
import { CoolBaseEntity } from './typeorm';
@ -23,4 +24,8 @@ export abstract class BaseEntity extends CoolBaseEntity {
@Index()
@UpdateDateColumn({ comment: '更新时间' })
updateTime: Date;
@Index()
@Column({ comment: '租户ID', nullable: true })
tenantId: number;
}