-- Audit logs
CREATE TABLE arimelody.auditlog (
    id UUID DEFAULT gen_random_uuid(), 
    level int NOT NULL DEFAULT 0,
    type TEXT NOT NULL, 
    content TEXT NOT NULL, 
    created_at TIMESTAMP NOT NULL DEFAULT current_timestamp
);

-- Need moar timestamps
ALTER TABLE arimelody.musicrelease ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT current_timestamp;
ALTER TABLE arimelody.account ALTER COLUMN created_at SET NOT NULL;
