package com.ld.igds.models;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import lombok.Data;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 门禁权限验证表
|
*
|
*/
|
@Data
|
@Entity
|
@Table(name = "D_DOOR_ACCESS")
|
public class DoorAccess implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@Column(name = "ID_")
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private int id;
|
|
@Column(name = "COMPANY_ID_", length = 10)
|
@PropertyDef(label = "组织编码")
|
private String companyId;
|
|
@Column(name = "DEPT_ID_", length = 30)
|
@PropertyDef(label = "所属分库")
|
private String deptId;
|
|
@Column(name = "DEPOT_ID_", length = 50)
|
@PropertyDef(label = "权限仓库",description = "多个用逗号隔开")
|
private String depotId;
|
|
@Column(name = "USER_", length = 30)
|
@PropertyDef(label = "权限人员")
|
private String user;
|
|
@Column(name = "TOKEN_", length = 8)
|
@PropertyDef(label = "令牌")
|
private String token;
|
|
@Column(name = "START_")
|
@PropertyDef(label = "有效开始时间")
|
private Date start;
|
|
@Column(name = "END_")
|
@PropertyDef(label = "有效截止时间")
|
private Date end;
|
|
}
|