package net.tccn.meta;

import lombok.Getter;
import lombok.Setter;
import net.tccn.base.BaseEntity;
import org.redkale.persistence.Column;
import org.redkale.persistence.Entity;
import org.redkale.persistence.Id;
import org.redkale.persistence.Table;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by liangxianyou at 2018/12/25 16:22.
 */
@Getter
@Setter
@Entity
@Table(name = "mlink", comment = "MLink表")
public class MLink extends BaseEntity {
    @Id
    @Column(comment = "[主键ID]自增")
    private int linkid; // 根据您的说明移除了nonnull，但通常主键不应该允许为空

    @Column(comment = "[关联的表]存储表别名")
    private String[] tables = new String[0];

    @Column(comment = "[关联关系]")
    private Map<String, String> links = new HashMap<>();
}
