package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.*;
import java.time.Instant;

@Entity
@Table(name = "documents", indexes = {
        @Index(name = "idx_owner_id", columnList = "owner_id")
})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Document extends BaseEntity{
    private static final long serialVersionUID = 16L;

    @Column(name = "case_id")
    private Long caseId;

    @Column(name = "owner_id")
    private Long ownerId;

    @Column(name = "dict_type" , length = 20)
    private String dictType;

    @Column(name = "doc_type", length = 50)
    private String docType;

    @Column(name = "file_path", length = 500)
    private String filePath;

    @Column(name = "file_name")
    private String fileName;

    @Column(name = "origin_name", length = 255)
    private String originName;

    @Column(name = "file_size")
    private Long fileSize;

    @Column(name = "thumbnails", length = 255)
    private String thumbnails;

    @Column(name = "is_current")
    private Boolean isCurrent;

    @Column(name = "create_time")
    private String createTime;

    @Column(name = "update_time")
    private String updateTime;

    @Column(name = "is_delete")
    private Boolean isDelete;

}