package entity

import (
	"google.golang.org/protobuf/types/known/timestamppb"

	globaldedicatedv1 "github.com/tidbcloud/tidb-management-service/api/spec/global/dedicated/v1"
)

// Entities.
type (
	// TODO: merge following entity
	TenantClusterQuota struct {
		TenantID uint64

		PDQuota      int
		TiDBQuota    int
		TiKVQuota    int
		TiFlashQuota int
		TiProxyQuota int
	}

	TenantComponentQuota struct {
		ID            uint64
		TenantID      uint64
		ComponentName globaldedicatedv1.ComponentType

		Quota uint32

		CreateTime *timestamppb.Timestamp
	}
)
