import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * 描述
 */
@Entity('dj_agent')
export class AgentEntity extends BaseEntity {
  @Column({ comment: '系统用户Id' })
  userId: string;

  @Column({ comment: '名称' })
  name: string;

  @Index({ unique: true })
  @Column({ comment: '登录账号' })
  username: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '备注', nullable: true })
  remark: string;
}
