package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 第三方商户进件 实体类。
 *
 * @author Administrator
 * @since 2025-02-11
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_merchant")
public class ShopMerchant implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 支付系统商户id
     */
    private String storeId;

    private String merchantName;

    /**
     * 商户应用id
     */
    private String appId;

    /**
     * 商户token
     */
    private String appSecret;

    /**
     * 微信小程序appid
     */
    private String wechatSmallAppid;

    /**
     * 支付宝小程序appid
     */
    private String alipaySmallAppid;

    /**
     * 支付密码
     */
    private String payPassword;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

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

}
