mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2025-12-11 05:42:49 +00:00
新增租户ID
This commit is contained in:
parent
9c6894f1d0
commit
9f40cacb11
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user