create type amendment_status as enum ( 'proposed', 'approved', 'withdrawn', 'rejected' ); create table amendments ( id serial primary key, name text not null, cid text not null, summary text, status amendment_status not null default 'proposed', creator text not null, is_current boolean not null default true, previous_cid text, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), proposal_id integer not null references proposals(id) )