-- name: ListEntityTypes :many
SELECT * FROM entity_types ORDER BY name;

-- name: ListRelationshipTypes :many
SELECT * FROM relationship_types ORDER BY name;

-- name: ListLifecycleDefs :many
SELECT * FROM lifecycle_defs ORDER BY id;

-- name: GetLifecycleForType :one
SELECT ld.* FROM lifecycle_defs ld
JOIN entity_types et ON et.lifecycle_id = ld.id
WHERE et.name = $1;
