大写
This commit is contained in:
@@ -59,7 +59,7 @@ tb_sys_user:
|
||||
- 支持多种登录方式(email、phone、wechat_id)
|
||||
- 密码加密存储(建议bcrypt/argon2)
|
||||
- 软删除机制(deleted + delete_time)
|
||||
- 时区感知时间戳(timestamptz)
|
||||
- 时区感知时间戳(TIMESTAMPTZ)
|
||||
```
|
||||
|
||||
### 3.2 知识库管理模块 (knowledge)
|
||||
@@ -419,8 +419,8 @@ CREATE TABLE sys.tb_sys_user_dept (
|
||||
is_primary BOOLEAN DEFAULT false, -- 是否主部门
|
||||
position VARCHAR(100), -- 职位
|
||||
creator VARCHAR(50) DEFAULT NULL,
|
||||
create_time timestamptz NOT NULL DEFAULT now(),
|
||||
update_time timestamptz DEFAULT NULL,
|
||||
create_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
update_time TIMESTAMPTZ DEFAULT NULL,
|
||||
deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
PRIMARY KEY (user_id, dept_id),
|
||||
UNIQUE (optsn)
|
||||
@@ -475,7 +475,7 @@ CREATE TABLE file.tb_file_relation (
|
||||
relation_type VARCHAR(30) DEFAULT 'attachment', -- 关联类型:attachment-附件/avatar-头像/banner-横幅
|
||||
order_num INTEGER DEFAULT 0,
|
||||
creator VARCHAR(50) DEFAULT NULL,
|
||||
create_time timestamptz NOT NULL DEFAULT now(),
|
||||
create_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
PRIMARY KEY (relation_id),
|
||||
UNIQUE (optsn),
|
||||
@@ -504,8 +504,8 @@ CREATE TABLE message.tb_message_template (
|
||||
dept_path VARCHAR(255) DEFAULT NULL,
|
||||
creator VARCHAR(50) DEFAULT NULL,
|
||||
updater VARCHAR(50) DEFAULT NULL,
|
||||
create_time timestamptz NOT NULL DEFAULT now(),
|
||||
update_time timestamptz DEFAULT NULL,
|
||||
create_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
update_time TIMESTAMPTZ DEFAULT NULL,
|
||||
deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
PRIMARY KEY (template_id),
|
||||
UNIQUE (optsn),
|
||||
@@ -688,7 +688,7 @@ pg_restore -d urbanlifeline -c backup_20240101.dump
|
||||
- **Schema数**:9 个业务Schema
|
||||
- **索引类型**:B-Tree、GIN、部分索引、表达式索引
|
||||
- **数据类型**:标准类型 + JSONB + 数组 + 向量(可选)
|
||||
- **时区支持**:全部使用timestamptz
|
||||
- **时区支持**:全部使用TIMESTAMPTZ
|
||||
- **软删除**:全表支持deleted标记
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user