package com.wzj.soopin.member.domain.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;
import org.dromara.common.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * 账单对象 ums_account_bill
 *
 * @author zcc
 */
@Schema(description="账单")
@Data
@TableName("trans_account_bill")
@Builder
public class AccountBill extends BaseAudit  {

    @Schema(description ="主键")
    @TableId(value="id")
    private Long id;

    @Schema(description = "账户id")
    private Long accountId;

    @Schema(description ="余额")
    private BigDecimal moneyBalance;


    @Schema(description ="变动前余额")
    private BigDecimal beforeBalance;

    @Schema(description ="变动后余额")
    private BigDecimal afterBalance;


    @Schema(description ="变动金额")

    @Excel(name = "变动金额")
    private BigDecimal changeAmount;

    @Schema(description ="变动类型 1收入 2支出")
    private Integer changeType;

    @Schema(description ="变动描述")
    private String changeDesc;

    @Schema(description ="来源 ")
    private Integer source;


}
