mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2026-01-04 16:28:11 +00:00
新增租户ID
This commit is contained in:
parent
9c6894f1d0
commit
9f40cacb11
@ -3,6 +3,7 @@ import {
|
|||||||
UpdateDateColumn,
|
UpdateDateColumn,
|
||||||
CreateDateColumn,
|
CreateDateColumn,
|
||||||
PrimaryGeneratedColumn,
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
import { CoolBaseEntity } from './typeorm';
|
import { CoolBaseEntity } from './typeorm';
|
||||||
|
|
||||||
@ -23,4 +24,8 @@ export abstract class BaseEntity extends CoolBaseEntity {
|
|||||||
@Index()
|
@Index()
|
||||||
@UpdateDateColumn({ comment: '更新时间' })
|
@UpdateDateColumn({ comment: '更新时间' })
|
||||||
updateTime: Date;
|
updateTime: Date;
|
||||||
|
|
||||||
|
@Index()
|
||||||
|
@Column({ comment: '租户ID', nullable: true })
|
||||||
|
tenantId: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user