package com.lesingle.edu.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 家长学生关系响应
 * 用于返回家长学生关系信息给前端
 */
@Data
@Builder
@Schema(description = "家长学生关系响应")
public class ParentStudentResponse {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "家长 ID")
    private Long parentId;

    @Schema(description = "学生 ID")
    private Long studentId;

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

    @Schema(description = "是否主要监护人")
    private Integer isPrimary;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
}
