|
@@ -2,7 +2,6 @@ import { Entity, PrimaryGeneratedColumn, Column, Index, ForeignKey, ManyToOne, J
|
|
|
import { Client } from '../clients/client.entity';
|
|
import { Client } from '../clients/client.entity';
|
|
|
|
|
|
|
|
import { z } from '@hono/zod-openapi';
|
|
import { z } from '@hono/zod-openapi';
|
|
|
-import { Hetong } from './hetong.entity';
|
|
|
|
|
|
|
|
|
|
@Entity('hetong_renew')
|
|
@Entity('hetong_renew')
|
|
|
export class HetongRenew {
|
|
export class HetongRenew {
|
|
@@ -12,9 +11,9 @@ export class HetongRenew {
|
|
|
@Column({ name: 'contract_id', type: 'int', unsigned: true })
|
|
@Column({ name: 'contract_id', type: 'int', unsigned: true })
|
|
|
contractId!: number;
|
|
contractId!: number;
|
|
|
|
|
|
|
|
- @ManyToOne(() => Hetong, hetong => hetong.renews)
|
|
|
|
|
|
|
+ @ManyToOne('Hetong', 'renews')
|
|
|
@JoinColumn({ name: 'contract_id' })
|
|
@JoinColumn({ name: 'contract_id' })
|
|
|
- contract!: Hetong;
|
|
|
|
|
|
|
+ contract!: any;
|
|
|
|
|
|
|
|
@Column({ name: 'amount', type: 'varchar', length: 50, nullable: true })
|
|
@Column({ name: 'amount', type: 'varchar', length: 50, nullable: true })
|
|
|
amount?: string;
|
|
amount?: string;
|