order update refactor

This commit is contained in:
2026-02-01 15:34:06 +03:30
parent 918d774cad
commit 71319de649
12 changed files with 129 additions and 31 deletions
@@ -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;