postgres index on email column

This commit is contained in:
Sergey Chubaryan 2024-08-28 20:47:44 +03:00
parent 2c33db0b78
commit 3d47b109d6

View File

@ -1,4 +1,4 @@
create table users ( create table if not exists users (
id int generated always as identity, id int generated always as identity,
email text unique not null, email text unique not null,
secret text not null, secret text not null,
@ -6,3 +6,5 @@ create table users (
primary key (id) primary key (id)
); );
create index if not exists users_email_idx on users(email);