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 landaiqing
 * @since 2024-06-02 00:14:38
 */
@Data
@Table("schisandra_auth_role_permission")
public class SchisandraAuthRolePermission implements Serializable {

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

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

    /**
     *
     */
    @Column("permission_id")
    private Long permissionId;

    /**
     * 创建人
     */
    @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;

}

