This commit is contained in:
2026-01-24 16:43:44 +03:30
parent 05edc9abb4
commit a2512fc013
4 changed files with 79 additions and 34 deletions
+3 -2
View File
@@ -2,10 +2,11 @@ import { Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property }
import { FieldOption } from './field-option.entity';
import { FieldType } from '../interface/print';
import { Section } from './section.entity';
import { BaseEntity } from 'src/common/entities/base.entity';
@Entity({ tableName: 'field' })
export class Field {
export class Field extends BaseEntity {
@PrimaryKey({ type: 'bigint', autoincrement: true })
id: bigint
@@ -13,7 +14,7 @@ export class Field {
options = new Collection<FieldOption>(this)
@ManyToOne(() => Section)
section: Section
section!: Section
@Property()
name: string;