CREATE TABLE IF NOT EXISTS gruppen (
    gruppe_id UUID PRIMARY KEY,
    id ULID UNIQUE NOT NULL,
    gruppenname VARCHAR NOT NULL,
    erstellt_am TIMESTAMP WITH TIME ZONE NOT NULL,
    geaendert_am TIMESTAMP WITH TIME ZONE NOT NULL
);

CREATE TYPE GRUPPEN_HERKUNFT AS ENUM (
    'direkt',
    'indirekt',
    'beides'
);
