package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;


/**
 * TABLE:spr:SPR - System Pending Release
 */
@Data
public class Spr {

    //Internal Unique ID of Pending Release
    private String inr = NULLSTR;

    //INR of the Associated SPT
    private String sptinr = NULLSTR;

    //Table Used to Store Object
    private String objtyp = NULLSTR;

    //INR of Object
    private String objinr = NULLSTR;

    //Date of Creation
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date credat = NULLDATE;

    //Time of Creation
    private BigDecimal cretim = Decimals.ZERO_SCALE4;

    //Creating User ID
    private String creusr = NULLSTR;

    //INR of Creating Session
    private String cressninr = NULLSTR;

    //Release Level
    private String rellev = NULLSTR;

    //Date of Release
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date reldat = NULLDATE;

    //Time of Release
    private BigDecimal reltim = Decimals.ZERO_SCALE4;

    //Releasing User ID
    private String relusr = NULLSTR;

    //INR of Releasing Session
    private String relssninr = NULLSTR;

    //Release Status
    private String relsta = NULLSTR;

    //Processing Status
    private String pupsta = NULLSTR;
}