package com.xunhong.erp.turbo.user.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xunhong.erp.turbo.api.user.dto.enums.AdminTypeEnum;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName(value = "admin")
@EqualsAndHashCode(callSuper = true)
public class AdminDO extends BaseDO<AdminDO> {

	/**
	 * 管理员Id
	 */
	@TableId(value = "admin_id", type = IdType.ASSIGN_ID)
	private Long adminId;

	/**
	 * 管理员名称
	 */
	@TableField(value = "name")
	private String name;

	/**
	 * 用户Id
	 */
	@TableField(value = "user_id", updateStrategy = FieldStrategy.NEVER)
	private Long userId;

	/**
	 * 管理员类型
	 */
	@TableField(value = "type")
	private AdminTypeEnum type;
}
