You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import { BaseEntity, Column, Entity, Index, JoinColumn, OneToMany, OneToOne } from 'typeorm';
|
|
import { createHmac } from 'crypto';
|
|
import { Base } from './common';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
// 访客
|
|
@Entity({ name: 'node-other-visitor' })
|
|
export class NodeOtherVisitorEntity extends Base {
|
|
@ApiProperty({ description: "访客姓名" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public name: string;
|
|
|
|
@ApiProperty({ description: "访客身份证号" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public identity_card_no: string;
|
|
|
|
@ApiProperty({ description: "证件类型" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public id_type: string;
|
|
|
|
@ApiProperty({ description: "国籍(中国/其他国籍)" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public nationality_type: string;
|
|
|
|
@ApiProperty({ description: "国籍名称" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public nationality: string;
|
|
|
|
@ApiProperty({ description: "访客卡编号" })
|
|
@Column({ length: 150, nullable: true, type: 'char' })
|
|
public card_number: string;
|
|
|
|
@ApiProperty({ description: "" })
|
|
@Column({ length: 36, nullable: true, type: 'char' })
|
|
public node_visitor_id: string;
|
|
|
|
@ApiProperty({ description: "进入时间" })
|
|
@Column({ nullable: true })
|
|
public start_time: Date;
|
|
|
|
@ApiProperty({ description: "离开时间" })
|
|
@Column({ nullable: true })
|
|
public end_time: Date;
|
|
}
|