mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
13 lines
299 B
SQL
13 lines
299 B
SQL
CREATE TABLE users
|
|
(
|
|
id SERIAL
|
|
constraint users_id
|
|
primary key,
|
|
email varchar(255) not null
|
|
constraint users_email
|
|
unique,
|
|
name varchar(255) not null
|
|
);
|
|
|
|
INSERT INTO public.users (id, email, name) VALUES (DEFAULT, 'test@hyperf.io', 'hyperf');
|