import { BaseEntity } from '../../base/entity/base';
|
import { Column, Entity, Index } from 'typeorm';
|
|
/**
|
* 站点信息
|
*/
|
@Entity('t_basicdata_site')
|
export class BasicdataSiteEntity extends BaseEntity {
|
@Index()
|
@Column({ comment: '编码' })
|
businessId: string;
|
|
@Column({ comment: '名称' })
|
businessName: string;
|
|
@Index()
|
@Column({ comment: '归属单位' })
|
departmentId: number;
|
|
// 部门名称
|
departmentName: string;
|
|
@Column({ comment: '站点类型', dict: 'sitetype', default: "收集点" })
|
siteType: string;
|
|
@Column({ comment: '地址' })
|
address: string;
|
|
@Column({ comment: '负责人' })
|
leader: string;
|
|
@Column({ comment: '经度', type: 'decimal', precision: 10, scale: 6 })
|
longitude: number;
|
|
@Column({ comment: '纬度', type: 'decimal', precision: 10, scale: 6 })
|
latitude: number;
|
|
@Column({ comment: '照片', nullable: true })
|
photo: string;
|
|
@Column({ comment: '是否启用', dict: ['禁用', '启用'], default: 1 })
|
status: number;
|
|
@Column({ comment: '备注', nullable: true })
|
remark: string;
|
}
|