package com.reading.platform.entity;

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

import java.time.LocalDateTime;

/**
 * Parent Student Relation Entity
 */
@Data
@TableName("parent_students")
public class ParentStudent {

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

    private Long parentId;

    private Long studentId;

    private String relationship;

    private Integer isPrimary;

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

    @TableLogic
    private Integer deleted;

}
