This commit is contained in:
oneao committed 2026-03-08 22:17:01 +08:00
1 parent 26ff2381b7
commit 00a1cce5ac
22 files changed
+335 -215

No files matched your search

+41
View File
@@ -110,3 +110,44 @@ create table finance_record
update_by bigint not null,
update_time timestamp with time zone default now()
);
-- session
CREATE TABLE session (
id bigint not null primary key,
space_id bigint not null,
type smallint not null,
name varchar(255),
avatar varchar(255),
description text,
status smallint default 0,
create_time timestamp with time zone default now(),
update_time timestamp with time zone default now()
)
-- session_member
create table session_member
(
id bigint not null
primary key,
session_id bigint not null,
user_id bigint not null,
remark varchar(255),
is_top smallint default 0 not null,
unread_count integer default 0,
last_msg_id bigint,
status integer default 0,
create_time timestamp with time zone default now(),
update_time timestamp with time zone default now()
);
create table session_message
(
id bigint not null
primary key,
session_id bigint not null,
sender_id bigint not null,
content text not null,
content_type smallint default 0 not null,
create_time timestamp with time zone default now()
);