package cn.iocoder.yudao.module.system.dal.dataobject.elderly;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseNoDeleteDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDate;

/**
 * 约束观察记录 DO
 */
@TableName("elderly_restraint")
@KeySequence("elderly_restraint_seq")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElderlyRestraintDO extends BaseNoDeleteDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 长者id */
    private Long elderId;

    /** 记录日期 */
    private LocalDate recordDate;

    /** 约束原因 */
    private String restraintReason;

    /** 约束类型 */
    private String restraintType;

    /** 机构id */
    private Long tenantId;
}

