Files
memora/memora-api/sql/en_word_synonym.sql
wsy182 a5d7fdf703 refactor(database): 更新英文单词同义词表结构
- 移除 tran 字段(同义词组释义)
- 移除 synonym_word 字段(同义词词头)
- 添加 rel_word_id 字段(关联同义词ID)
- 调整字段顺序以优化表结构
2026-02-27 17:27:37 +08:00

13 lines
736 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
CREATE TABLE IF NOT EXISTS `en_word_synonym`
(
`id` BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '同义词记录主键ID',
`word_id` BIGINT NOT NULL COMMENT '单词ID关联 en_word.id',
`rel_word_id` BIGINT NOT NULL COMMENT '关联同义词ID',
`pos` VARCHAR(20) COMMENT '词性,如 vt/vi/n',
`delete_flag` TINYINT(1) DEFAULT 0 COMMENT '删除标志0-正常1-删除',
`create_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci COMMENT ='英语单词同义词表';