package com.xindazhou.vehicle.dal.dataobject.auth;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xindazhou.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

/**
 * 车辆授权设置 DO
 *
 * @author xindazhou
 */
@TableName(value = "vehicle_auth", autoResultMap = true)
@KeySequence("vehicle_auth_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VehicleAuthDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 车型
     */
    private String model;

    /**
     * 最高人数
     */
    private Integer maxUsers;

    /**
     * 可授权权限（逗号分隔）
     */
    private String authorizablePermissions;

    /**
     * 临时授权时间(min)
     */
    private Integer tempAuthTime;

    /**
     * 临时授权公里数(km)
     */
    private Integer tempAuthMileage;

}
