postgres index on email column
This commit is contained in:
parent
2c33db0b78
commit
3d47b109d6
@ -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);
|
||||||
Loading…
x
Reference in New Issue
Block a user