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,8 +1,10 @@
create table users (
create table if not exists users (
id int generated always as identity,
email text unique not null,
secret text not null,
name text not null,
primary key (id)
);
);
create index if not exists users_email_idx on users(email);