package com.competition.modules.user.entity;

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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

@Data
@TableName("t_user_parent_child")
@Schema(description = "家长子女关联实体")
public class UserParentChild implements Serializable {

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "家长用户ID")
    @TableField("parent_user_id")
    private Long parentUserId;

    @Schema(description = "子女用户ID")
    @TableField("child_user_id")
    private Long childUserId;

    @Schema(description = "关系")
    private String relationship;

    @Schema(description = "管控模式")
    @TableField("control_mode")
    private String controlMode;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
