sqlx/tests/mysql/migrations/1_user.sql
2022-08-02 14:38:12 -07:00

8 lines
227 B
SQL

create table user
(
-- integer primary keys are the most efficient in SQLite
user_id integer primary key auto_increment,
-- indexed text values have to have a max length
username varchar(16) unique not null
);