CREATE TYPE mail_type AS ENUM ('primary', 'alias', 'list');

ALTER TABLE emails 
	ADD COLUMN type mail_type DEFAULT 'primary';

ALTER TABLE emails
	ALTER COLUMN type DROP DEFAULT;
