package com.bcxin.tenant.open.domains.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bcxin.tenant.open.infrastructures.entities.Aggregate;
import lombok.Data;

import java.sql.Date;

@TableName(value = "rd_project_summary",autoResultMap = true)
@Data
public class RdProjectEntity extends RdSuperviseEntityAbstract implements Aggregate {
    @TableId("pk_id")
    private Long pkId;

    @TableField(value = "id")
    private String id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "type")
    private String type;

    @TableField(value = "state")
    private String state;

    @TableField(value = "lon_lat")
    private String lonLat;

    @TableField(value = "organization_id")
    private String organizationId;

    @TableField(value = "company_name")
    private String companyName;

    @TableField(value = "begin_date")
    private Date beginDate;

    @TableField(value = "end_date")
    private Date endDate;

    //负责人
    @TableField(value = "principal_id")
    private String principalId;

    @TableField(value = "address")
    private String address;

    @TableField(value = "count_of_stations")
    private int countOfStations;

    @TableField(value = "count_of_teams")
    private int countOfTeams;

    @TableField(value = "count_of_members")
    private int countOfMembers;
}
