package com.quantgroup.asset.distribution.service.jpa.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by renfeng on 2020/3/24.
 */
//@Entity
//@Table(name="customer_type_rule_config")
@Data
public class CustomerTypeRuleConfig implements Serializable{

    private static final long serialVersionUID = -1L;
//
//    @Id
//    @Column(name = "id")
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    private Long id;
//
//    @Column(name="customer_type_rule_no")
//    private String customerTypeRuleNo;
//
//    @Column(name="customer_type_rule_desc")
//    private String customerTypeRuleDesc;
//
//    @Column(name="customer_type")
//    private Integer customerType;
//
//    @Column(name="customer_type_rule_el")
//    private String customerTypeRuleEl;
//
//    @Column(name = "enable")
//    private Boolean enable;
//
//    @Column(name="created_by")
//    private String createdBy;
//
//    @Column(name="updated_by")
//    private String updatedBy;
//
//    @Column(name = "created_at")
//    private Timestamp createdAt;
//
//    @Column(name = "updated_at")
//    private Timestamp updatedAt;
//
//
//    @PrePersist
//    public void prePersist() {
//        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
//        createdAt = timestamp;
//        updatedAt = timestamp;
//    }
//
//    @PreUpdate
//    public void preUpdate() {
//        updatedAt = new Timestamp(System.currentTimeMillis());
//    }
}
