package cn.fateverse.query.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Clay
 * @date 2023-07-17
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TableRelationalMapping {

    /** 主表id */
    private Long mainId;

    /** 字表id */
    private Long childId;

    /** 主表字段 */
    private String mainKey;

    /** 字表字段 */
    private String childKey;

    /** 关系 1:hasOne 2:hasMany 3: belongsTo */
    private String type;

}
