order update refactor
This commit is contained in:
@@ -5,7 +5,7 @@ import { Field } from './field.entity';
|
||||
@Entity({ tableName: 'field_option' })
|
||||
export class FieldOption extends BaseEntity {
|
||||
@PrimaryKey({ autoincrement: true, type: 'bigint' })
|
||||
id: bigint;
|
||||
id: number;
|
||||
|
||||
@Property()
|
||||
value: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import { BaseEntity } from 'src/common/entities/base.entity';
|
||||
@Entity({ tableName: 'field' })
|
||||
export class Field extends BaseEntity {
|
||||
@PrimaryKey({ type: 'bigint', autoincrement: true })
|
||||
id: bigint
|
||||
id: number
|
||||
|
||||
@OneToMany(() => FieldOption, (attrValue) => attrValue.field)
|
||||
options = new Collection<FieldOption>(this)
|
||||
@@ -18,7 +18,7 @@ export class Field extends BaseEntity {
|
||||
|
||||
// Foreign key based on entityType
|
||||
@Property({ type: 'bigint' })
|
||||
entityId: bigint;
|
||||
entityId: number;
|
||||
|
||||
@Property()
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user