diff --git a/server/.sqruff b/.sqruff similarity index 100% rename from server/.sqruff rename to .sqruff diff --git a/sql/create/tables.sql b/sql/create/tables.sql index 41659a8..6ef38cd 100644 --- a/sql/create/tables.sql +++ b/sql/create/tables.sql @@ -21,7 +21,7 @@ create table user_account ( full_name text not null, password_hash text not null, phone text unique not null, - email text unique not null, + email text unique not null check (trim(email) like '%@%'), is_active boolean not null default true, created_at timestamp not null default current_timestamp, updated_at timestamp not null default current_timestamp,