package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 店铺支付类型 实体类。
 *
 * @author zs
 * @since 2025-02-26
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table("tb_shop_pay_type")
public class ShopPayType implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 图标
     */
    private String icon;


    /**
     * 支付类型cash,alipay,weixin,deposit,arrears,virtual,member-account
     */
    private String payType;

    /**
     * 支付类型名称支付类型名称：现金，支付宝，刷卡deposit，挂单arrears，储值member-account自定义virtual
     */
    private String payName;

    /**
     * 是否快捷展示1是0否
     */
    private Integer isShowShortcut;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 0-不显示1显示
     */
    private Integer isDisplay;

    /**
     * 排序
     */
    private Integer sorts;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime createTime;
    @Column(onInsertValue = "now()")
    private LocalDateTime updateTime;
}
