package link.at17.mid.tushare.data.models;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import link.at17.mid.tushare.enums.LimitType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@SuppressWarnings("serial")
@Data
@Accessors(chain=true)
@EqualsAndHashCode(callSuper=false)
@TableName("stock_limit")
public class StockLimit extends Model<StockLimit> {
    String tsCode;
    LocalDateTime tradeDate;
    String industry;
    String name;
    Double close;
    Double pctChg;
    Double amount;  // 成交额
    Double limitAmount; // 板上成交金额，跌停无此数据
    Double floatMv;
    Double totalMv;
    Double turnoverRatio;
    Double fdAmount;
    LocalDateTime firstTime;
    LocalDateTime lastTime;
    Integer openTimes;
    String upStat;
    Integer limitTimes;
    @TableField("\"limit\"")
    LimitType limit;
}
