com.sinszm.sofa.model.TsOperationRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of szm-sofa-boot-starter-order Show documentation
Show all versions of szm-sofa-boot-starter-order Show documentation
高可用服务框架,业务订单基础功能操作组件 Copyright © 2021 智慧程序猿(sinsz.com) All rights reserved.
The newest version!
package com.sinszm.sofa.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
/**
* 订单操作记录
*
* @author admin
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "ts_operation_record", indexes = {
@Index(name = "ts_record_order_id",columnList = "order_id"),
@Index(name = "ts_record_user_id",columnList = "user_id"),
@Index(name = "ts_record_create_time",columnList = "create_time")
})
@ApiModel(value = "订单操作日志")
public class TsOperationRecord {
/**
* id
*/
@ApiModelProperty(value = "主键")
@Id
@Column(name = "id", length = 32, nullable = false)
private String id;
/**
* 订单id
*/
@ApiModelProperty(value = "订单ID")
@Column(name = "order_id", length = 32, nullable = false)
private String orderId;
/**
* 用户ID
*/
@ApiModelProperty(value = "日志用户ID")
@Column(name = "user_id", length = 64, nullable = false)
private String userId;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "create_time", nullable = false)
private Date createTime;
/**
* 日志描述
*/
@ApiModelProperty(value = "日志描述")
@Column(name = "describes", length = 200)
private String describes;
}