case-data-api/src/main/java/com/example/caseData/model/CaseClinicalVideoAuthorModel.java
2025-05-12 13:28:44 +08:00

47 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.caseData.model;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.time.LocalDateTime;
@Data // Lombok注解用于自动生成getter/setter方法等
@TableName("`case_clinical_video_author`") // 指定数据库表名
public class CaseClinicalVideoAuthorModel {
/**
* 主键id可选
*/
@TableId(type = IdType.ASSIGN_ID)
private Long authorId;
/**
* 临床视频id作为主键
*/
@TableField("video_id")
private Long videoId;
/**
* 医生id
*/
@TableField("doctor_id")
private String doctorId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@JsonProperty("created_at")
private LocalDateTime createdAt;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@JsonProperty("updated_at")
private LocalDateTime updatedAt;
// 医生
@TableField(exist = false)
private CaseClinicalDoctorModel caseClinicalDoctor;
}