|
|
@@ -1,11 +1,11 @@
|
|
|
-import { Entity, PrimaryColumn, Column, Index, ForeignKey } from 'typeorm';
|
|
|
+import { Entity, PrimaryGeneratedColumn, Column, Index, ForeignKey } from 'typeorm';
|
|
|
import { z } from '@hono/zod-openapi';
|
|
|
import { Hetong } from './hetong.entity';
|
|
|
|
|
|
@Entity('hetong_renew')
|
|
|
export class HetongRenew {
|
|
|
- @PrimaryColumn({ name: 'id', type: 'varchar', length: 50 })
|
|
|
- id!: string;
|
|
|
+ @PrimaryGeneratedColumn({ name: 'id', type: 'int', unsigned: true })
|
|
|
+ id!: number;
|
|
|
|
|
|
@Column({ name: 'contract_id', type: 'int', unsigned: true })
|
|
|
@ForeignKey(() => Hetong)
|