|
@@ -3,13 +3,13 @@ import { BaseModel } from '../../frame/BaseModel';
|
|
|
|
|
|
@Entity('competition')
|
|
|
export class Competition extends BaseModel {
|
|
|
- @Column({ type: 'integer', comment: '平台用户id' })
|
|
|
+ @Column({ type: 'integer', nullable: true, comment: '平台用户id' })
|
|
|
user: number;
|
|
|
- @Column({ type: 'character varying', comment: '名称' })
|
|
|
+ @Column({ type: 'character varying', nullable: true, comment: '名称' })
|
|
|
name: string;
|
|
|
- @Column({ type: 'character varying', comment: '负责人名称' })
|
|
|
+ @Column({ type: 'character varying', nullable: true, comment: '负责人名称' })
|
|
|
person: string;
|
|
|
- @Column({ type: 'character varying', comment: '负责人电话' })
|
|
|
+ @Column({ type: 'character varying', nullable: true, comment: '负责人电话' })
|
|
|
person_phone: string;
|
|
|
@Column({ type: 'text', nullable: true, comment: '简介' })
|
|
|
brief: string;
|
|
@@ -17,6 +17,6 @@ export class Competition extends BaseModel {
|
|
|
address: string;
|
|
|
@Column({ type: 'character varying', nullable: true, comment: '是否公开' })
|
|
|
is_show: string;
|
|
|
- @Column({ type: 'character varying', default: '0', comment: '状态' })
|
|
|
+ @Column({ type: 'character varying', nullable: true, default: '0', comment: '状态' })
|
|
|
status: string;
|
|
|
}
|