package com.kcim.dao.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 科室表
 * 
 * @author KCYG
 * @email KCYG@xinxicom
 * @date 2021-07-27 08:49:37
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_department")
public class Department implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 科室Id
	 */
	@TableId
	private Long id;
	/**
	 * 科室名称
	 */
	private String departmentName;
	/**
	 * 科室代码
	 */
	private String departmentCode;
	/**
	 * 医院或院区Id
	 */
	private Long hospId;
	/**
	 * 创建时间13位时间戳
	 */
	private Long createTime;
	/**
	 * 删除时间，如果存在表示已删除13位时间戳
	 */
	@TableLogic(value = "0",delval = "UNIX_TIMESTAMP(NOW()) * 1000")
	private Long deleteTime;

}
