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.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by liangxianyou at 2018/12/24 16:15.
 */
@Getter
@Setter
@Entity
@Table(name = "mservice", comment = "MService表")
public class MService extends BaseEntity {
    @Id
    @Column(comment = "[服务ID]")
    private int servid;

    @Column(length = 64, comment = "[业务标识]")
    private String name;

    @Column(length = 15, comment = "[主体表别名]")
    private String tablealias;

    @Column(length = 64, comment = "[业务中文名]")
    private String comment;

    @Column(comment = "[平台id]")
    private Integer platid;

    @Column(comment = "[SHOWS]")
    private List<Map<String, String>> shows = new ArrayList<>();

    @Column(comment = "[EDITS]")
    private List<FromItem> edits = new ArrayList<>();

    @Column(comment = "[DETAILS]")
    private List<Map<String, String>> details = new ArrayList<>();

    @Column(comment = "[FILTERS]")
    private List<Filter> filters = new ArrayList<>();

    @Column(comment = "[exports]")
    private List<Map<String, String>> exports = new ArrayList<>();
}