-- Template migration for each organization schema.
-- Replace {schema} with the real schema name, e.g. company_<organization_id>.

alter table {schema}.activities
    add column if not exists activity_number text;

create unique index if not exists idx_activities_activity_number
    on {schema}.activities (activity_number)
    where activity_number is not null;
