package cn.iselab.mooctest.user.model;

import lombok.Data;

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

/**
 * @author: Diors.Po
 * @Email: 171256175@qq.com
 * @date 2019-09-15 20:52
 */
@Data
@Entity
@Table(name = "operation_record")
public class OperationRecord {

    @Id
    @GeneratedValue
    private Long id;

    @Column(name = "ip")
    private String ip;

    @Column(name = "user_Id")
    private Long userId;

    @Column(name = "operation")
    private String operation;

    @Column(name = "resource")
    private String resource;

    @Column(name = "create_time")
    private Timestamp createTime;
}
