skip name opts

This commit is contained in:
arpitnath 2023-10-23 22:37:39 +05:30
parent 856b7a26a5
commit 45ba41699b
3 changed files with 10 additions and 10 deletions

View file

@ -18,16 +18,16 @@ export class Component {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({ name: 'name' })
@Column()
name: string;
@Column({ name: 'type' })
@Column()
type: string;
@Column({ name: 'page_id' })
pageId: string;
@Column({ name: 'parent', nullable: true })
@Column({ nullable: true })
parent: string;
@Column('simple-json')

View file

@ -22,7 +22,7 @@ export class EventHandler {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({ name: 'name' })
@Column()
name: string;
@Column()
@ -34,7 +34,7 @@ export class EventHandler {
@Column({ name: 'source_id' })
sourceId: string;
@Column({ name: 'target' })
@Column()
target: Target;
@Column({ name: 'app_version_id' })

View file

@ -6,19 +6,19 @@ export class Layout {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({ type: 'enum', enumName: 'layout_type', name: 'type', enum: ['desktop', 'mobile'] })
@Column({ type: 'enum', enumName: 'layout_type', enum: ['desktop', 'mobile'] })
type: string;
@Column({ name: 'top', type: 'double precision' })
@Column({ type: 'double precision' })
top: number;
@Column({ name: 'left', type: 'double precision' })
@Column({ type: 'double precision' })
left: number;
@Column({ name: 'width', type: 'double precision' })
@Column({ type: 'double precision' })
width: number;
@Column({ name: 'height', type: 'double precision' })
@Column({ type: 'double precision' })
height: number;
@Column({ name: 'component_id' })