u
This commit is contained in:
1 parent
1903861354
commit
1b1a54f7dd
35 files changed
+1185
-535
No files matched your search
@@ -4,7 +4,7 @@ create table "user"
|
||||
primary key,
|
||||
nickname varchar(255) not null,
|
||||
avatar varchar(255) not null,
|
||||
status int default 0 not null,
|
||||
status smallint default 0 not null,
|
||||
last_login_time timestamp with time zone,
|
||||
create_time timestamp with time zone default now(),
|
||||
update_time timestamp with time zone default now()
|
||||
@@ -15,7 +15,7 @@ create table user_oauth
|
||||
id bigint not null
|
||||
primary key,
|
||||
user_id bigint not null,
|
||||
type int default 0 not null,
|
||||
type smallint default 0 not null,
|
||||
openid varchar(255) not null,
|
||||
create_time timestamp with time zone default now(),
|
||||
update_time timestamp with time zone default now()
|
||||
@@ -27,7 +27,6 @@ create table space
|
||||
primary key,
|
||||
name varchar(255) not null,
|
||||
invite_code varchar(30) not null,
|
||||
owner_id bigint not null,
|
||||
create_time timestamp with time zone default now(),
|
||||
update_time timestamp with time zone default now()
|
||||
);
|
||||
@@ -39,6 +38,36 @@ create table space_member
|
||||
space_id bigint not null,
|
||||
user_id bigint not null,
|
||||
role smallint default 2 not null,
|
||||
is_default smallint default 0 not null,
|
||||
join_time timestamp with time zone default now(),
|
||||
update_time timestamp with time zone default now()
|
||||
);
|
||||
|
||||
create table finance_category_default
|
||||
(
|
||||
id bigint not null
|
||||
primary key,
|
||||
name varchar(64) not null,
|
||||
icon varchar(64) not null,
|
||||
type smallint default 0 not null,
|
||||
sort_number integer default 0 not null,
|
||||
create_time timestamp with time zone default now(),
|
||||
update_time timestamp with time zone default now()
|
||||
);
|
||||
|
||||
create table finance_category_space
|
||||
(
|
||||
id bigint not null
|
||||
primary key,
|
||||
space_id bigint not null,
|
||||
name varchar(64) not null,
|
||||
icon varchar(64) not null,
|
||||
type smallint default 0 not null,
|
||||
sort_number integer default 0 not null,
|
||||
create_by bigint not null,
|
||||
create_time timestamp with time zone default now(),
|
||||
update_by bigint not null,
|
||||
update_time timestamp with time zone default now()
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user