package com.zhiqiyun.open.core.models.sentiment;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhiqiyun.open.core.typeHandler.UrlPatternTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "sentiment_spider_site_rule", autoResultMap = true)
public class SentimentSpiderSiteRule {
    private Long id;
    private String siteName;
    private String collectorName;
    @TableField(typeHandler = UrlPatternTypeHandler.class)
    private List<UrlPatterns> urlPatterns;
    private String startUrls;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Date createdTime;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long createdBy;

    private Date updatedTime;
    private Long updatedBy;
}
