package com.reading.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Tenant Course Entity
 */
@Data
@TableName("tenant_courses")
public class TenantCourse {

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

    private Long tenantId;

    private Long courseId;

    private Integer enabled;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Integer deleted;

}
