package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 商家分管账号与门店授权关系。
 */
@Data
@TableName("merchant_subaccount_store")
@EqualsAndHashCode(callSuper = false)
public class MerchantSubaccountStore {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long subaccountUserId;
    private Long storeId;
    private Date createTime;
    private Date updateTime;

    public MerchantSubaccountStore() {
    }

    public MerchantSubaccountStore(Long subaccountUserId, Long storeId) {
        this.subaccountUserId = subaccountUserId;
        this.storeId = storeId;
    }
}
