package com.schisandra.auth.infra.basic.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类
 *
 * @author zlg
 * @since 2024-05-25 18:05:40
 */
@Data
@Table("schisandra_auth_user_role")
public class SchisandraAuthUserRole implements Serializable {

    /**
     * 
     */
    @Id(value = "id", keyType = KeyType.Auto)
    private Long id;

    /**
     * 
     */
    @Column("user_id")
    private Long userId;

    /**
     * 
     */
    @Column("role_id")
    private Long roleId;

    /**
     * 创建人
     */
    @Column("created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column("created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @Column("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @Column("update_time")
    private Date updateTime;

    /**
     * 
     */
    @Column(value = "is_deleted",isLogicDelete = true)
    private Integer isDeleted;

}

