package schema

import (
	"gorm.io/gorm"
)

type ClusterPassword struct {
	gorm.Model

	ResourcePoolId    uint64 `gorm:"not null;index:idx_resource_pool_cluster_user,unique"`
	ClusterId         string `gorm:"not null;index:idx_resource_pool_cluster_user,unique"`
	User              string `gorm:"type:enum('root','platform_admin','maintenance_admin','cloud_admin');not null;index:idx_resource_pool_cluster_user,unique"`
	EncryptedPassword string `gorm:"type:VARCHAR(1024);not null;default ''"`
	// ExpiresAt      time.Time TODO
}
