Represents a resource entity with metadata and type association.

interface Resource {
    arid: ArchonResourceId;
    id: number;
    metadata: Record<string, unknown>;
    type: ResourceType;
}

Properties

Properties

The unique ARID (Archon Resource Identifier) for the resource.

This is a UUID and must be unique.

id: number

The unique identifier for the resource.

Auto-incremented by the database.

metadata: Record<string, unknown>

The metadata associated with the resource.

Stored as a JSON object, defaults to an empty object {}.

The type of the resource.

This is a relation to the ResourceType entity.