package systemtables

import "fmt"

func tableIDFor(keyspace, table string) (string, error) {
	name := fmt.Sprintf("table_id|ks=%s|table=%s", keyspace, table)
	return uuidV5(schemaObjectNamespaceUUID, name)
}

func viewIDFor(keyspace, view string) (string, error) {
	name := fmt.Sprintf("view_id|ks=%s|view=%s", keyspace, view)
	return uuidV5(schemaObjectNamespaceUUID, name)
}
