mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-12 12:55:29 +08:00
13 lines
299 B
MySQL
13 lines
299 B
MySQL
|
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');
|