import { Entity, Column } from 'typeorm';
import { BaseModel } from '../../frame/BaseModel';
// 期刊
@Entity('notes')
export class Notes extends BaseModel {
  @Column({ type: 'integer', nullable: true, comment: '所属期刊' })
  journal: number;
  @Column({ type: 'character varying', nullable: true, comment: '名称' })
  name: string;
  @Column({ type: 'jsonb', nullable: true, comment: '封面' })
  file: Array<any>;
  @Column({ type: 'character varying', nullable: true, comment: '委托方' })
  client: string;
  @Column({ type: 'character varying', nullable: true, comment: '合作方' })
  partner: string;
  @Column({ type: 'character varying', nullable: true, comment: '简介' })
  brief: string;
  @Column({ type: 'character varying', nullable: true, comment: '是否使用', default: '0' })
  is_use: string;
  @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  status: string;
}
