Storing Emails With citext
create extension if not exists citext;
create table citext_emails (
id serial primary key,
email citext not null unique
);
insert into citext_emails (email) values ('LizLemon@nbc.com');
select * from citext_emails where email = 'lizlemon@nbc.com';
-- id | email
-- ----+------------------
-- 1 | LizLemon@nbc.comLast updated