package com.srs.flowable.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 宿舍学生关联表
 * </p>
 *
 */
@Data
@TableName("srs_dormitory_student")
@ApiModel(value = "SrsDormitoryStudent对象", description = "宿舍学生关联表")
public class DormitoryStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("宿舍ID")
    @TableField("dormitory_id")
    private Long dormitoryId;

    @ApiModelProperty("床位ID")
    @TableField("bed_id")
    private Long bedId;

    @ApiModelProperty("学生学号")
    @TableField("stu_no")
    private String stuNo;

    @ApiModelProperty("是否为宿舍长(0否 1是)")
    @TableField("is_dormitory_head")
    private Integer isDormitoryHead;

    @ApiModelProperty("状态(0未缴费 1已缴费)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("入住时间")
    @TableField("checkin_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime checkinTime;

    @ApiModelProperty("入住状态")
    @TableField("in_status")
    public String inStatus;

    @ApiModelProperty("是否在校住宿")
    @TableField("isInStudentsleep")
    public String isInStudentsleep;

}




