|
|
@@ -1,5 +1,5 @@
|
|
|
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
|
|
|
-import { UserEntity as User } from '@/server/modules/users/user.entity';
|
|
|
+import { Agent } from '@/server/modules/agent/agent.entity';
|
|
|
|
|
|
@Entity('card')
|
|
|
export class Card {
|
|
|
@@ -36,7 +36,7 @@ export class Card {
|
|
|
@Column({ name: 'updated_by', type: 'int', unsigned: true, nullable: true, comment: '更新用户ID' })
|
|
|
updatedBy!: number | null;
|
|
|
|
|
|
- @ManyToOne(() => User, { nullable: true })
|
|
|
+ @ManyToOne(() => Agent, { nullable: true })
|
|
|
@JoinColumn({ name: 'agent_id', referencedColumnName: 'id' })
|
|
|
- agent!: User | null;
|
|
|
+ agent!: Agent | null;
|
|
|
}
|