增加常量文件,修改作者注释
This commit is contained in:
3
db/20250427232209_create_users_table.down.sql
Normal file
3
db/20250427232209_create_users_table.down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
drop sequence public.users_cid_seq;
|
||||
|
||||
drop table public.users;
|
||||
14
db/20250427232209_create_users_table.up.sql
Normal file
14
db/20250427232209_create_users_table.up.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
create sequence public.users_cid_seq
|
||||
as integer;
|
||||
|
||||
create table public.users
|
||||
(
|
||||
cid serial
|
||||
constraint users_pk
|
||||
default nextval('users_cid_seq')
|
||||
primary key,
|
||||
password char(60) not null,
|
||||
first_name varchar(255),
|
||||
last_name varchar(255),
|
||||
network_rating smallint not null
|
||||
);
|
||||
1
db/20250515185717_create_config_table.down.sql
Normal file
1
db/20250515185717_create_config_table.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table config;
|
||||
8
db/20250515185717_create_config_table.up.sql
Normal file
8
db/20250515185717_create_config_table.up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
create table config
|
||||
(
|
||||
key varchar not null,
|
||||
value varchar not null
|
||||
);
|
||||
|
||||
create unique index config_key_uindex
|
||||
on config (key);
|
||||
Reference in New Issue
Block a user