├── .editorconfig ├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── docker-compose.yaml ├── readme.md ├── requirements.txt ├── sql ├── data │ ├── chii_apps.sql │ ├── chii_blog_comments.sql │ ├── chii_blog_entry.sql │ ├── chii_characters.sql │ ├── chii_crt_cast_index.sql │ ├── chii_crt_subject_index.sql │ ├── chii_ep_comments.sql │ ├── chii_ep_revisions.sql │ ├── chii_ep_status.sql │ ├── chii_episodes.sql │ ├── chii_episodes2.sql │ ├── chii_friends.sql │ ├── chii_group_members.sql │ ├── chii_group_posts.sql │ ├── chii_group_topics.sql │ ├── chii_groups.sql │ ├── chii_index.sql │ ├── chii_index_comments.sql │ ├── chii_index_related.sql │ ├── chii_likes.sql │ ├── chii_memberfields.sql │ ├── chii_members.sql │ ├── chii_oauth_access_tokens.sql │ ├── chii_oauth_clients.sql │ ├── chii_oauth_refresh_tokens.sql │ ├── chii_os_web_sessions.sql │ ├── chii_person_collects.sql │ ├── chii_person_cs_index.sql │ ├── chii_person_fields.sql │ ├── chii_persons.sql │ ├── chii_rev_history.sql │ ├── chii_rev_text.sql │ ├── chii_subject_fields.sql │ ├── chii_subject_fields2.sql │ ├── chii_subject_interests.sql │ ├── chii_subject_posts.sql │ ├── chii_subject_related_blog.sql │ ├── chii_subject_relations.sql │ ├── chii_subject_revisions.sql │ ├── chii_subject_topics.sql │ ├── chii_subjects.sql │ ├── chii_subjects2.sql │ ├── chii_tag_neue_fields.sql │ ├── chii_tag_neue_index.sql │ ├── chii_tag_neue_list.sql │ ├── chii_timeline.sql │ └── chii_usergroup.sql ├── schema │ ├── chii_app_collects.sql │ ├── chii_apps.sql │ ├── chii_blog_comments.sql │ ├── chii_blog_entry.sql │ ├── chii_blog_photo.sql │ ├── chii_characters.sql │ ├── chii_crt_cast_index.sql │ ├── chii_crt_comments.sql │ ├── chii_crt_revisions.sql │ ├── chii_crt_subject_index.sql │ ├── chii_crt_subject_index_bak_240803.sql │ ├── chii_doujin_club_comments.sql │ ├── chii_doujin_club_fields.sql │ ├── chii_doujin_club_members.sql │ ├── chii_doujin_club_posts.sql │ ├── chii_doujin_club_related_blog.sql │ ├── chii_doujin_club_timeline.sql │ ├── chii_doujin_club_topics.sql │ ├── chii_doujin_clubs.sql │ ├── chii_doujin_invites.sql │ ├── chii_doujin_preorder.sql │ ├── chii_doujin_preorder_return.sql │ ├── chii_doujin_subject_attr_tags.sql │ ├── chii_doujin_subject_club_index.sql │ ├── chii_doujin_subject_collects.sql │ ├── chii_doujin_subject_comments.sql │ ├── chii_doujin_subject_event_index.sql │ ├── chii_doujin_subject_photos.sql │ ├── chii_doujin_subjects.sql │ ├── chii_eden.sql │ ├── chii_eden_members.sql │ ├── chii_ep_comments.sql │ ├── chii_ep_revisions.sql │ ├── chii_ep_status.sql │ ├── chii_episodes.sql │ ├── chii_event_club_index.sql │ ├── chii_event_collects.sql │ ├── chii_event_posts.sql │ ├── chii_event_topics.sql │ ├── chii_events.sql │ ├── chii_failedlogins.sql │ ├── chii_friends.sql │ ├── chii_gadgets.sql │ ├── chii_group_members.sql │ ├── chii_group_posts.sql │ ├── chii_group_topics.sql │ ├── chii_groups.sql │ ├── chii_index.sql │ ├── chii_index_collects.sql │ ├── chii_index_comments.sql │ ├── chii_index_related.sql │ ├── chii_issues.sql │ ├── chii_likes.sql │ ├── chii_likes_bak_230331.sql │ ├── chii_magi_answered.sql │ ├── chii_magi_members.sql │ ├── chii_magi_questions.sql │ ├── chii_memberfields.sql │ ├── chii_members.sql │ ├── chii_network_services.sql │ ├── chii_notify.sql │ ├── chii_notify_field.sql │ ├── chii_oauth_access_tokens.sql │ ├── chii_oauth_authorization_codes.sql │ ├── chii_oauth_clients.sql │ ├── chii_oauth_jwt.sql │ ├── chii_oauth_refresh_tokens.sql │ ├── chii_oauth_scopes.sql │ ├── chii_onlinetime.sql │ ├── chii_os_web_sessions.sql │ ├── chii_person_alias.sql │ ├── chii_person_collects.sql │ ├── chii_person_cs_index.sql │ ├── chii_person_fields.sql │ ├── chii_person_relationship.sql │ ├── chii_persons.sql │ ├── chii_pms.sql │ ├── chii_prsn_comments.sql │ ├── chii_regips.sql │ ├── chii_resources.sql │ ├── chii_rev_history.sql │ ├── chii_rev_text.sql │ ├── chii_robot_personality.sql │ ├── chii_robot_speech.sql │ ├── chii_searchindex.sql │ ├── chii_sessions.sql │ ├── chii_settings.sql │ ├── chii_stats.sql │ ├── chii_subject_alias.sql │ ├── chii_subject_fields.sql │ ├── chii_subject_imgs.sql │ ├── chii_subject_interests.sql │ ├── chii_subject_posts.sql │ ├── chii_subject_rec.sql │ ├── chii_subject_rec_2.sql │ ├── chii_subject_related_blog.sql │ ├── chii_subject_relations.sql │ ├── chii_subject_relations_bak_240803.sql │ ├── chii_subject_revisions.sql │ ├── chii_subject_topics.sql │ ├── chii_subjects.sql │ ├── chii_subjects_240921.sql │ ├── chii_tag_neue_fields.sql │ ├── chii_tag_neue_index.sql │ ├── chii_tag_neue_list.sql │ ├── chii_timeline.sql │ ├── chii_timeline_comments.sql │ ├── chii_tokei_paint.sql │ └── chii_usergroup.sql └── sql_mode.sql ├── sql_script_load_order.txt ├── src ├── .gitignore ├── config │ └── mysql-master.cnf ├── docker-compose.yaml ├── infra │ └── docker-compose.yaml └── scripts │ └── reload.sh ├── test-each-file.py ├── test.py └── wait_mysql_ready.sh /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | 7 | [*.{js,json,yml}] 8 | charset = utf-8 9 | indent_style = space 10 | indent_size = 2 11 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | pull_request: 8 | branches: 9 | - master 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v4 16 | 17 | - run: docker compose up -d 18 | 19 | - uses: actions/setup-python@v5 20 | with: 21 | cache: pip 22 | python-version: "3.10" 23 | 24 | - run: pip install -r requirements.txt 25 | 26 | - name: wait mysql ready 27 | run: bash ./wait_mysql_ready.sh 28 | 29 | - run: python test-each-file.py 30 | - run: python test.py 31 | 32 | - run: cp -r src dist 33 | 34 | - run: | 35 | mysqldump \ 36 | -h 127.0.0.1 -u root -psecret \ 37 | --databases bangumi \ 38 | --skip-dump-date \ 39 | --order-by-primary \ 40 | --no-create-db \ 41 | --hex-blob \ 42 | --extended-insert=FALSE | sed '/USE `bangumi`;/d' > ./dist/dist.sql 43 | 44 | - run: docker compose logs 45 | if: "${{ failure() }}" 46 | 47 | - run: cp ./wait_mysql_ready.sh dist 48 | 49 | - name: Deploy 50 | uses: peaceiris/actions-gh-pages@v4 51 | if: github.event_name == 'push' 52 | with: 53 | publish_dir: ./dist/ 54 | commit_message: deploy ${{ github.ref }} 55 | github_token: ${{ secrets.GITHUB_TOKEN }} 56 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | .idea/ 3 | .venv/ 4 | /data/ 5 | /mq/data/ 6 | /micro-services/data/ 7 | public/ 8 | node_modules/ 9 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3.7" 2 | 3 | services: 4 | mysql: 5 | container_name: bangumi_mysql 6 | image: mysql:5.7.33 7 | ports: 8 | - "3306:3306" 9 | command: --sql-mode="" 10 | restart: unless-stopped 11 | environment: 12 | MYSQL_ROOT_PASSWORD: secret 13 | MYSQL_DATABASE: bangumi 14 | MYSQL_USER: user 15 | MYSQL_PASSWORD: password 16 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Bangumi 开发环境 2 | 3 | 基于 docker 和 docker compose 4 | 5 | 本仓库仅用于快速配置 bangumi 开发环境,不包含任何 bangumi 代码。 6 | 7 | mysql 容器的内置数据位于 [./sql](sql) 文件夹内, 8 | 9 | ## QuickStart 10 | 11 | ```bash 12 | git clone https://github.com/bangumi/dev-env.git bangumi-dev-env --depth=1 --branch gh-pages 13 | cd bangumi-dev-env 14 | docker compose up --build -d 15 | # start mysql binlog message watcher, optional 16 | cd infra 17 | docker compose up -d 18 | ``` 19 | 20 | 如果你不使用 docker 或者 docker compose,也可以下载并导入 文件,此文件包含了本仓库的所有 sql 文件。 21 | 22 | 墙内可以访问 jsdelivr 镜像网址 https://cdn.jsdelivr.net/gh/bangumi/dev-env@gh-pages/dist.sql 23 | 24 | ./dist.sql 会 drop 旧数据表并且插入数据,可以多次运行。 25 | 26 | --- 27 | 28 | `./infra/` 文件夹包含 debezium 等组件,用于解析 mysql 的 binlog。 29 | 30 | 基础的 http server 不需要这些服务,可以不启动。 31 | 32 | 如果你不在运行 docker compose 的机器上进行开发(也就是说不使用`localhost`或者`127.0.0.1`来链接到数据库), 33 | 设置 `CHII_HOST` 环境变量来解决 kafka 的 `KAFKA_ADVERTISED_LISTENERS` 问题 34 | 35 | ## 更新 36 | 37 | ```shell 38 | git pull 39 | bash scripts/reload.sh 40 | ``` 41 | 42 | ## 可用账号 43 | 44 | https://github.com/bangumi/dev-docs#api 45 | 46 | ## 开发 47 | 48 | ### 安装依赖 49 | 50 | ```shell 51 | python -m venv .venv 52 | source .venv/bin/activate 53 | pip install -r requirements.txt 54 | ``` 55 | 56 | ### 添加 sql 文件 57 | 58 | #### 文件结构 59 | 60 | - [./sql/schema/](sql/schema/): DDL 相关 (`create table ...`) 61 | - [./sql/data/](sql/data/): DML 相关 (`insert into ...`) 62 | - [./sql_script_load_order.txt](sql_script_load_order.txt): sql 文件执行顺序定义,按行数正序执行 63 | 64 | #### 步骤 65 | 66 | 1. 把 sql 文件放到对应目录 67 | 2. 更新[./sql_script_load_order.txt](sql_script_load_order.txt) 68 | 3. 更新[./test.py](test.py#L59),如果添加了新表 69 | 70 | #### 测试 71 | 72 | ```shell 73 | # 删除旧数据及docker环境 74 | docker compose down -v --remove-orphans 75 | sudo rm -rf ./data 76 | 77 | # 测试 78 | docker compose up --build -d 79 | python test.py # 需要等docker container准备完成 80 | ``` 81 | 82 | ### un-processed 83 | 84 | `un-processed/` 文件夹中是已经导出但还没经处理,目前的开源后端服务器也还未使用的表。 85 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pymysql>=1.1.1,<2.0.0 2 | pyyaml>=6.0,<7 3 | -------------------------------------------------------------------------------- /sql/data/chii_apps.sql: -------------------------------------------------------------------------------- 1 | insert into chii_apps (app_id, app_type, app_creator, app_name, app_desc, app_url, app_collects, app_status, app_timestamp, app_lasttouch, app_ban) 2 | values (1, 1, 2, 'Bangumi iOS', 'iOS app for Bangumi', '', 0, 0, 1715828406, 1715828406, 0); -------------------------------------------------------------------------------- /sql/data/chii_blog_comments.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `chii_blog_comments` (`blg_pst_id`, `blg_pst_mid`, `blg_pst_uid`, `blg_pst_related`, `blg_pst_dateline`, `blg_pst_content`) VALUES 2 | (125852, 311629, 697857, 0, 1658119009, '[u]test[/u]\r\n[img]https://lain.bgm.tv/pic/photo/l/b5/a3/697857_gpG9g.jpg[/img]'), 3 | (150917, 311629, 697857, 0, 1683098815, '[user=wtmsb]1ra[/user]'), 4 | (150919, 311629, 697857, 0, 1683098854, '[user=wtmsb]1ra[/user]'), 5 | (276258, 311629, 600046, 0, 1722650397, 'test'), 6 | (276260, 311629, 600046, 0, 1722650978, 'test'), 7 | (276261, 311629, 600046, 0, 1722651038, 'test'), 8 | (276262, 311629, 600046, 0, 1722651073, 'test'), 9 | (276264, 311629, 600046, 0, 1722651205, 'test'), 10 | (276266, 311629, 600046, 0, 1722651302, 'test'), 11 | (276267, 311629, 600046, 0, 1722651412, 'test'), 12 | (276268, 311629, 600046, 0, 1722651588, 'assdfasdf'), 13 | (276269, 311629, 600046, 0, 1722651689, 'test'), 14 | (276271, 311629, 600046, 0, 1722652237, 'test'), 15 | (276272, 311629, 600046, 0, 1722652477, 'test'), 16 | (286808, 311629, 697857, 276258, 1730959866, 'test'), 17 | (286809, 311629, 600046, 276258, 1730959903, '[quote][b]1ra的小号[/b] 说: test[/quote]\ntest'), 18 | (125870, 311639, 287622, 0, 1658141787, 'qwe'), 19 | (125871, 311639, 287622, 0, 1658141789, 'a'), 20 | (125872, 311639, 287622, 0, 1658141790, '45625'), 21 | (125873, 311639, 287622, 0, 1658141793, 'sdgfsdf'), 22 | (125874, 311639, 287622, 0, 1658141794, 'sadf4q'), 23 | (147923, 319484, 287622, 0, 1680072373, 'u'), 24 | (278418, 319486, 287622, 0, 1724513422, '?'), 25 | (257723, 338196, 669060, 0, 1714909802, '除了第一个和最后一个都打不开'), 26 | (257724, 338196, 233345, 257723, 1714910068, '虽然这些目录大部分都是有注册时间限制的,但我这边测试了应该没啥问题啊,再试试?'), 27 | (257731, 338196, 669060, 0, 1714912398, '应该不是注册时间的问题 还是打不开'), 28 | (257732, 338196, 669060, 257731, 1714912475, '22年的号不会不行吧'), 29 | (257733, 338196, 233345, 257731, 1714912742, '[quote][b]ka2usa[/b] 说: 22年的号不会不行吧[/quote]\r\n把地址换成bangumi.tv试试,估计你在bgm.tv这个域名上没有登陆'), 30 | (257756, 338196, 669060, 257731, 1714929818, '[quote][b]隔壁的王某某[/b] 说: 把地址换成bangumi.tv试试,估计你在bgm.tv这个域名上没有登陆[/quote]\n原来如此 我是用chii.in登的'); 31 | -------------------------------------------------------------------------------- /sql/data/chii_ep_comments.sql: -------------------------------------------------------------------------------- 1 | insert into chii_ep_comments (ep_pst_id, ep_pst_mid, ep_pst_uid, ep_pst_related, ep_pst_dateline, ep_pst_content, ep_pst_state) 2 | values (1034989, 1075440, 382951, 0, 1640462712, 'sandbox', 0), 3 | (1569792, 1075440, 382951, 0, 1719389390, '这是一条测试内容', 0), 4 | (1569874, 1075440, 382951, 0, 1719399020, '(bgm40)(bgm41)(bgm41)(bgm41)(bgm41)', 0); -------------------------------------------------------------------------------- /sql/data/chii_episodes2.sql: -------------------------------------------------------------------------------- 1 | REPLACE INTO `chii_episodes` (`ep_id`, `ep_subject_id`, `ep_sort`, `ep_type`, `ep_disc`, `ep_name`, `ep_name_cn`, `ep_rate`, `ep_duration`, `ep_airdate`, `ep_online`, `ep_comment`, `ep_resources`, `ep_desc`, `ep_dateline`, `ep_lastpost`, `ep_lock`, `ep_ban`) VALUES 2 | (751409, 214114, 4, 0, 0, 'Killer App', '', 0, '', '2017-10-19', '', 0, 0, '', 1506655821, 0, 0, 0), 3 | (751421, 214114, 16, 0, 0, 'Last Gasp', '', 0, '', '2018-03-15', '', 0, 0, '', 1506655821, 0, 0, 0), 4 | (1080550, 366527, 1, 0, 0, 'Pajama Day', '', 0, '22m', '2022-02-02', '', 0, 0, 'The 4th grade class is banned from wearing their pajamas to school on the most important day of the year.', 1643021844, 0, 0, 0); 5 | -------------------------------------------------------------------------------- /sql/data/chii_friends.sql: -------------------------------------------------------------------------------- 1 | insert into chii_friends (frd_uid, frd_fid, frd_grade, frd_dateline, frd_description) 2 | values (287622, 427613, 1, 1658142804, ''); -------------------------------------------------------------------------------- /sql/data/chii_group_members.sql: -------------------------------------------------------------------------------- 1 | insert into chii_group_members (gmb_uid, gmb_gid, gmb_moderator, gmb_dateline) 2 | values (287622, 4215, 1, 1531631310), 3 | (427613, 4215, 0, 1531631570), 4 | (382951, 4215, 0, 1640499538); -------------------------------------------------------------------------------- /sql/data/chii_group_posts.sql: -------------------------------------------------------------------------------- 1 | insert into chii_group_posts (grp_pst_id, grp_pst_mid, grp_pst_uid, grp_pst_related, grp_pst_content, grp_pst_state, grp_pst_dateline) 2 | values (2055276, 371602, 287622, 0, 'tt', 0, 1657885648), 3 | (2056216, 371602, 287622, 0, 't', 6, 1658030918), 4 | (2092004, 371602, 287622, 0, '管理员删除', 7, 1662276469), 5 | (2092065, 371602, 1, 0, '', 5, 1662282514), 6 | (2092066, 371602, 1, 0, '', 1, 1662282518), 7 | (2092067, 371602, 1, 0, '', 2, 1662282523), 8 | (2092069, 371602, 287622, 0, 'q', 0, 1662282554), 9 | (2092074, 371602, 287622, 2092069, 'sub', 0, 1662283112), 10 | (2177417, 375793, 287622, 0, '测试贴 正文2', 0, 1671381484), 11 | (2177419, 375793, 287622, 0, 'top', 0, 1671381514), 12 | (2177420, 375793, 287622, 2177419, 'sub', 0, 1671381518), 13 | (2288668, 379821, 287622, 0, 't', 0, 1680273073), 14 | (2288669, 379821, 287622, 0, '11', 0, 1680273078), 15 | (2288670, 379821, 287622, 2288669, 'bb', 0, 1680273085), 16 | (2288733, 379821, 287622, 0, 'no reactions in this post', 0, 1680275867); -------------------------------------------------------------------------------- /sql/data/chii_group_topics.sql: -------------------------------------------------------------------------------- 1 | insert into chii_group_topics (grp_tpc_id, grp_tpc_gid, grp_tpc_uid, grp_tpc_title, grp_tpc_dateline, grp_tpc_lastpost, grp_tpc_replies, grp_tpc_state, grp_tpc_display) 2 | values (371602, 4215, 287622, 'tes', 1657885648, 1662283112, 2, 2, 1), 3 | (375793, 4215, 287622, '测试贴 2', 1671381484, 1671381518, 2, 0, 1), 4 | (379821, 4215, 287622, 'reaction', 1680273073, 1680275867, 3, 0, 1); -------------------------------------------------------------------------------- /sql/data/chii_groups.sql: -------------------------------------------------------------------------------- 1 | insert into chii_groups (grp_id, grp_cat, grp_name, grp_title, grp_icon, grp_creator, grp_topics, grp_posts, grp_members, grp_desc, grp_lastpost, grp_builddate, grp_accessible, grp_nsfw) 2 | values (1, 0, 'pb', 'Perfect Blue', '', 2, 579, 0, 15, '蛋疼的测试ing', 0, 1216020888, 1, 0), 3 | (2, 40, 'forum', '站务论坛', '000/00/00/2.jpg', 1, 8224, 0, 2523, '地图: 4 | [url=http://bgm.tv]Bangumi[/url] 5 | ├ [url=http://bgm.tv/group/forum]站务论坛[/url] (就是这里) 6 | ├ [url=http://bgm.tv/group/wiki]番組WIKI計画[/url] 7 | ├ [url=http://bgm.tv/group/dev]番组开发[/url] 8 | └ [url=http://bgm.tv/group/issues]BUG追踪[/url] 9 | 10 | —————————— 11 | ● 天窗站务:[url]http://bgm.tv/group/doujin[/url] 12 | 13 | 14 | [url=http://bgm.tv/rakuen/topic/group/296596]邮箱修改申请及注册邮箱丢失办法[/url]', 0, 1216021079, 1, 0), 15 | (3, 0, 'virgin', '落红组', '', 3, 1, 0, 3, '喔耶~~ 我太坏了 ... 16 | 17 | [ 为什么叫落红组呢 ... ] 18 | 19 | 因为这是全站的第一个小组哟 ...', 0, 1216021317, 1, 0), 20 | (4, 0, 'yd_1010', '大爱霹雳(—v—)~~', '000/00/00/4.jpg', 6, 6, 0, 26, '我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!我们爱霹雳~!!', 0, 1216031375, 1, 0), 21 | (5, 0, 'v2ex', 'V2EX', '', 4, 46, 0, 7, '', 0, 1216203519, 1, 0), 22 | (6, 41, 'ukagaka', '伪春菜', '000/00/00/6.jpg', 1, 585, 0, 2981, '无论是本地版还是Web版的伪春菜,都可以在这里讨论哟', 0, 1216478959, 1, 0), 23 | (7, 0, 'gr_35x', '真三国无双~!', '000/00/00/7.jpg', 6, 2, 0, 20, '光荣游戏大爱(—v—)~', 0, 1216874164, 1, 0), 24 | (8, 0, 'key', '噶哦_key', '000/00/00/8.jpg', 43, 0, 0, 16, 'clannad 25 | air 26 | kanon', 0, 1217530382, 1, 0), 27 | (9, 0, 'x404', '无敌世纪少年', '000/00/00/9.jpg', 48, 0, 0, 13, '你可曾设想,有朝一日,儿时的幻想竟成了恐怖的事实', 0, 1217530389, 1, 0), 28 | (10, 0, 'tm', '型月社', '000/00/00/10.jpg', 64, 7, 0, 95, '这里是蘑菇笔下的月世界,大家晚上不要出门。', 0, 1217541236, 1, 0), 29 | (11, 0, 'a', '~技术宅真可怕~', '000/00/00/11.jpg', 64, 3919, 0, 9452, '本小组欢迎对各种技术有一定了解的人, 30 | 比如像橘花热衷杀人技术…… 31 | 32 | 不过、本组主要谈论PC软硬件方面, 33 | 想了解相关知识,结识可怕的技术宅,请进。', 0, 1217542289, 1, 0), 34 | (4215, 32, 'sandbox', '沙盒', '000/00/42/4215.jpg?r=1531631345', 287622, 1, 0, 3, '[s]非[/s]官方沙盒', 0, 1531631310, 1, 0); -------------------------------------------------------------------------------- /sql/data/chii_index.sql: -------------------------------------------------------------------------------- 1 | insert into chii_index (idx_id, idx_type, idx_title, idx_desc, idx_replies, idx_subject_total, idx_collects, idx_stats, idx_dateline, idx_lasttouch, idx_uid, idx_ban) 2 | values (15045, 0, '日本动画最高收视率TOP100', '[url]http://www.tudou.com/programs/view/W6eIoxnHs6g/[/url] 3 | 有美国动画混入,所以准确的说是在日本播放的动画最高收视率(而且是关东地区的 4 | 基本大部分是70年代的,那个年代娱乐贫乏优势真大', 8, 101, 96, 'a:1:{i:2;s:3:"101";}', 1352366596, 1356922367, 14127, 0), 5 | (15465, 0, 'このマンガを読め! / 这本漫画必读! 2005-2015历年top10', '「[url=http://ja.wikipedia.org/wiki/%E3%81%93%E3%81%AE%E3%83%9E%E3%83%B3%E3%82%AC%E3%82%92%E8%AA%AD%E3%82%81!]このマンガを読め![/url]」はフリースタイルから発行されている年刊の漫画ガイド本である。2004年12月発行開始。現在は独立した刊行物でなく、同社の季刊誌『フリースタイル』の特集記事となっている。', 4, 106, 296, 'a:1:{i:1;s:3:"106";}', 1365008969, 1422016824, 110525, 0); -------------------------------------------------------------------------------- /sql/data/chii_index_comments.sql: -------------------------------------------------------------------------------- 1 | insert into chii_index_comments (idx_pst_id, idx_pst_mid, idx_pst_uid, idx_pst_related, idx_pst_dateline, idx_pst_content) 2 | values (1038, 15045, 2331, 0, 1352385392, '9/101 3 | 渣渣~'), 4 | (1039, 15045, 14127, 1038, 1352385632, '哈哈 我也是9/101'), 5 | (1040, 15045, 9023, 0, 1352386627, '现在深夜动画能上3%都是高收视,考虑电视机普及率和频道多样化,更何况是20多年前一家老小坐在电视机前看那么部一周只有一部的动画片,就像通货膨胀一样,看以前收视率排名根本没多大用'), 6 | (1041, 15045, 14127, 1040, 1352387135, '确实是的,可以分时段和年代排一下'), 7 | (3672, 15045, 63220, 1038, 1442370518, '[quote][b]RomanceDawn[/b] 说: 哈哈 我也是9/101[/quote] 8 | 你们两个都算多了,我才4 。。。 9 | 一般人都不会集中去看这么旧的吧'), 10 | (3673, 15045, 14127, 1038, 1442378382, '[quote][b]caleb89[/b] 说: 你们两个都算多了,我才4 。。。 11 | 一般人都不会集中去看这么旧的吧[/quote] 12 | 哈哈,3年后是10了'), 13 | (3674, 15045, 2331, 1038, 1442381891, '[quote][b]RomanceDawn[/b] 说: 哈哈,3年后是10了[/quote] 14 | 我还是9...... 15 | 其实大部分不是补老片看的 只是小时候电视台放的时候看过 至于有没有看完整.....'), 16 | (3679, 15045, 14127, 1038, 1442539347, '[quote][b]leins=pallange[/b] 说: 我还是9...... 17 | 其实大部分不是补老片看的 只是小时候电视台放的时候看过 至于有没有看完整.....[/quote] 18 | 小时候没看完整的我都算看过b38'), 19 | (2128, 15465, 106866, 0, 1392454041, '唔、好多都没看过啊...TAT 20 | 基本都是小学馆和讲谈社的嘛,集英社感觉不是很多...= =lll'), 21 | (2922, 15465, 114312, 0, 1421670105, '2014: 22 | 失踪日记[url]http://bangumi.tv/subject/69197[/url] 23 | 重版出来[url]http://bangumi.tv/subject/87015[/url] 24 | 戦争と一人の女[url]http://bangumi.tv/subject/122825[/url] 25 | [url=http://bangumi.tv/subject/122826]フイチン再見![/url] 26 | ひきだしにテラリウム[url]http://bangumi.tv/subject/70855[/url] 27 | I【アイ】[url]http://bangumi.tv/subject/70836[/url] 28 | 闇の国々[url]http://bangumi.tv/subject/70866[/url] 29 | [url=http://bangumi.tv/subject/122817]三文未来の家庭訪問[/url] 30 | オンノジ[url]http://bangumi.tv/subject/86958[/url] 31 | 未编辑:チェイサー[url]http://bangumi.tv/subject/122834[/url]'), 32 | (2923, 15465, 114312, 2922, 1421671982, '[user=voiceover]voiceover[/user]'), 33 | (2924, 15465, 114312, 0, 1421674722, '「THE BEST MANGA 2015 このマンガを読め!」 34 | 35 | 1位 高野文子「ドミトリーともきんす」(中央公論新社) 36 | 2位 津原泰水作・近藤ようこ画「五色の舟」(KADOKAWA エンターブレイン) 37 | 3位 山田参助「あれよ星屑」(KADOKAWA エンターブレイン) 38 | 4位 田島列島「子供はわかってあげない」(講談社) 39 | 5位 都留泰作「ムシヌユン」(小学館) 40 | 6位 山本美希「ハウアーユー?」(祥伝社) 41 | 7位 奥田亜紀子「ぷらせぼくらぶ」(小学館) 42 | 8位 鳥飼茜「先生の白い嘘」(講談社) 43 | 8位 池辺葵「どぶがわ」(秋田書店) 44 | 8位 沙村広明「春風のスネグラチカ」(太田出版)'); -------------------------------------------------------------------------------- /sql/data/chii_likes.sql: -------------------------------------------------------------------------------- 1 | insert into chii_likes (type, main_id, related_id, uid, value, ban, created_at) 2 | values (8, 379821, 2288668, 6497, 54, 0, 1680273352), 3 | (8, 379821, 2288668, 49447, 132, 0, 1680273232), 4 | (8, 379821, 2288668, 153405, 54, 0, 1680273359), 5 | (8, 379821, 2288668, 199502, 128, 0, 1680275573), 6 | (8, 379821, 2288668, 200970, 132, 0, 1680273146), 7 | (8, 379821, 2288668, 208208, 137, 0, 1680274401), 8 | (8, 379821, 2288668, 250298, 122, 0, 1680274126), 9 | (8, 379821, 2288668, 406430, 92, 0, 1680273258), 10 | (8, 379821, 2288668, 428068, 68, 0, 1680273361), 11 | (8, 379821, 2288668, 438735, 68, 0, 1680273317), 12 | (8, 379821, 2288669, 200970, 68, 0, 1680273166), 13 | (8, 379821, 2288669, 208208, 92, 0, 1680274376), 14 | (8, 379821, 2288669, 402032, 122, 0, 1680273283), 15 | (8, 379821, 2288669, 406430, 90, 0, 1680273248), 16 | (8, 379821, 2288669, 422666, 132, 0, 1680273164), 17 | (8, 379821, 2288669, 438735, 85, 0, 1680273328), 18 | (8, 379821, 2288670, 41436, 62, 0, 1680275595), 19 | (8, 379821, 2288670, 200970, 137, 0, 1680273163), 20 | (8, 379821, 2288670, 208208, 128, 0, 1680274385), 21 | (8, 379821, 2288670, 402032, 62, 0, 1680273278), 22 | (8, 379821, 2288670, 406430, 60, 0, 1680273253), 23 | (8, 379821, 2288670, 422666, 137, 0, 1680273187), 24 | (8, 379821, 2288670, 438735, 122, 0, 1680273334), 25 | (8, 379821, 2288670, 439497, 137, 0, 1680273230); -------------------------------------------------------------------------------- /sql/data/chii_memberfields.sql: -------------------------------------------------------------------------------- 1 | insert into chii_memberfields (uid, site, location, bio, privacy, blocklist) 2 | values (287622, 'bgm.tv/character/13307', '', 'fake bio', 'a:4:{i:1;i:2;i:30;i:2;i:20;i:2;i:21;i:0;}', '0'), 3 | (382951, 'bgm.tv/character/13307', '', 'treeholechan@gmail.com 密码:lovemeplease 4 | (欢迎大家一起维护树洞酱,但请勿随意修改密码) 5 | 6 | [url=https://bgm.tv/user/treehole]初心[/url] 7 | 8 | [b][url=https://bgm.tv/blog/3996]1. 关于树洞酱的事[/url][/b] 9 | [size=8]任何人都可以钻到这里:可以诉说不为人知的秘密,可以自曝真相,可以晒黑历史,可以说平时不太敢说的话,可以扮演不同的人格…… 10 | 不用担心维护自己的形象。也许你会说,有什么都可以直接说出来嘛,为什么要这样做?但是既然有一个完全虚拟的网络,为什么非要对应着现实世界每个人都要有个id,有个头像呢? 11 | 或者这只是一种尝试吧。[/size] 12 | 13 | [b][url=https://bgm.tv/blog/3998]2. 爱护我们的树洞酱[/url][/b]', 'a:4:{i:1;i:2;i:30;i:2;i:20;i:2;i:21;i:0;}', '0'); -------------------------------------------------------------------------------- /sql/data/chii_oauth_access_tokens.sql: -------------------------------------------------------------------------------- 1 | insert into chii_oauth_access_tokens (id, type, access_token, client_id, user_id, expires, scope, info) 2 | values (1, 0, 'a_development_access_token', 'test_client_id', '382951', '2030-12-21 14:16:28', null, ''), 3 | (2, 0, 'a_expired_token', 'test_client_id', '382951', '2020-12-21 14:16:28', null, ''); -------------------------------------------------------------------------------- /sql/data/chii_oauth_clients.sql: -------------------------------------------------------------------------------- 1 | insert into chii_oauth_clients (app_id, client_id, client_secret, redirect_uri, grant_types, scope, user_id) 2 | values (1, 'bgmabcdefg', 'abcdefg', 'bangumi://oauth/callback', '', '', '2'); -------------------------------------------------------------------------------- /sql/data/chii_oauth_refresh_tokens.sql: -------------------------------------------------------------------------------- 1 | insert into chii_oauth_refresh_tokens (refresh_token, client_id, user_id, expires, scope) 2 | values ('61x67mIdBKZgJfBUGIox9WJOIuxsu7jpm8WH3BRi', 'bgmabcdefg', '4', '2024-10-01 09:37:09', null), 3 | ('ajvQcb0uuZuaSknMBqePzF8RQ9dscz1zX63zdSsZ', 'bgmabcdefg', '4', '2025-01-02 09:37:03', null), 4 | ('HbSBlCWuln6t5kNhrMifpKYOANNFltbsPwf4h17I', 'bgmabcdefg', '4', '2024-10-01 09:37:03', null), 5 | ('JSHbE9u6zpeJz1gF2wArKNYSoKITzIkU59A52ANu', 'bgmabcdefg', '4', '2025-01-02 09:37:09', null); -------------------------------------------------------------------------------- /sql/data/chii_os_web_sessions.sql: -------------------------------------------------------------------------------- 1 | insert into chii_os_web_sessions (`key`, user_id, value, created_at, expired_at) 2 | values ('dev-session-id', 382951, 0x7B227265675F74696D65223A22323032322D30362D32305430303A35313A30362E393032373039332B30383A3030222C22757365725F6964223A3338323935312C22657870697265645F6174223A313635363236323236367D, 1655657466, 2156262266); -------------------------------------------------------------------------------- /sql/data/chii_person_collects.sql: -------------------------------------------------------------------------------- 1 | insert into chii_person_collects (prsn_clt_id, prsn_clt_cat, prsn_clt_mid, prsn_clt_uid, prsn_clt_dateline) 2 | values (1, 'crt', 706, 1, 1296495506), 3 | (2, 'crt', 3, 1, 1296495535), 4 | (3, 'crt', 1, 1, 1296495541), 5 | (4, 'crt', 10792, 14459, 1296495763), 6 | (5, 'crt', 10760, 14459, 1296495906), 7 | (6, 'crt', 10776, 14459, 1296495929), 8 | (7, 'crt', 292, 6162, 1296496026), 9 | (8, 'crt', 297, 6162, 1296496052), 10 | (9, 'crt', 10078, 6162, 1296496114), 11 | (10, 'crt', 706, 6235, 1296496204), 12 | (11, 'crt', 10586, 6235, 1296496213), 13 | (13, 'crt', 4569, 6162, 1296496228), 14 | (15, 'crt', 606, 6162, 1296496251), 15 | (16, 'crt', 32, 6162, 1296496277), 16 | (17, 'crt', 10774, 6235, 1296496283), 17 | (18, 'prsn', 5816, 14459, 1296496294), 18 | (19, 'crt', 53, 6162, 1296496302), 19 | (20, 'prsn', 5818, 14459, 1296496318), 20 | (21, 'prsn', 5813, 14459, 1296496349), 21 | (22, 'crt', 1, 6162, 1296496366), 22 | (23, 'crt', 3, 6162, 1296496378), 23 | (24, 'prsn', 2923, 14459, 1296496379), 24 | (25, 'crt', 5690, 6162, 1296496401), 25 | (26, 'prsn', 5809, 14459, 1296496412), 26 | (27, 'prsn', 5805, 14459, 1296496429), 27 | (28, 'prsn', 5804, 14459, 1296496452), 28 | (29, 'crt', 1937, 2978, 1296496467), 29 | (30, 'prsn', 5802, 14459, 1296496468), 30 | (31, 'crt', 712, 6162, 1296496472), 31 | (33, 'prsn', 5792, 14459, 1296496505), 32 | (34, 'crt', 9969, 6162, 1296496552), 33 | (35, 'prsn', 5789, 14459, 1296496559), 34 | (36, 'prsn', 5788, 14459, 1296496582), 35 | (37, 'crt', 10447, 6162, 1296496585), 36 | (38, 'prsn', 5830, 1, 1296496598), 37 | (40, 'crt', 423, 6162, 1296496645), 38 | (41, 'prsn', 5761, 14459, 1296496690), 39 | (42, 'crt', 1026, 6162, 1296496728), 40 | (43, 'prsn', 5830, 4, 1296496729), 41 | (44, 'crt', 8937, 6162, 1296496759), 42 | (45, 'prsn', 5741, 14459, 1296496763), 43 | (46, 'crt', 10608, 14459, 1296496779), 44 | (47, 'prsn', 1, 14459, 1296496832), 45 | (48, 'crt', 32, 1, 1296496835), 46 | (50, 'prsn', 3287, 3730, 1296497138); -------------------------------------------------------------------------------- /sql/data/chii_person_fields.sql: -------------------------------------------------------------------------------- 1 | insert into chii_person_fields (prsn_cat, prsn_id, gender, bloodtype, birth_year, birth_mon, birth_day) 2 | values ('crt', 1, 1, 0, 0, 12, 5), 3 | ('prsn', 1, 2, 0, 1980, 1, 21), 4 | ('crt', 2, 1, 0, 2000, 7, 10), 5 | ('prsn', 2, 1, 0, 0, 19, 9), 6 | ('crt', 3, 2, 0, 0, 0, 0), 7 | ('prsn', 3, 1, 0, 1962, 5, 5), 8 | ('crt', 4, 2, 1, 0, 12, 24), 9 | ('prsn', 4, 1, 0, 0, 19, 1), 10 | ('crt', 5, 2, 1, 0, 5, 13), 11 | ('prsn', 5, 1, 0, 0, 0, 0), 12 | ('crt', 6, 2, 2, 0, 7, 20), 13 | ('prsn', 6, 1, 0, 0, 0, 0), 14 | ('crt', 7, 2, 4, 0, 9, 9), 15 | ('prsn', 7, 1, 0, 0, 0, 0), 16 | ('crt', 8, 2, 4, 0, 10, 14), 17 | ('prsn', 8, 1, 0, 0, 0, 0), 18 | ('crt', 9, 1, 0, 0, 19, 2), 19 | ('prsn', 9, 1, 0, 1962, 3, 2), 20 | ('crt', 10, 1, 0, 0, 0, 0), 21 | ('prsn', 10, 1, 0, 0, 19, 9); -------------------------------------------------------------------------------- /sql/data/chii_subject_related_blog.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `chii_subject_related_blog` (`srb_id`, `srb_uid`, `srb_subject_id`, `srb_entry_id`, `srb_spoiler`, `srb_like`, `srb_dislike`, `srb_dateline`) VALUES 2 | (144903, 287622, 184017, 311620, 0, 0, 0, 1658085110), 3 | (144918, 697857, 184017, 311629, 0, 0, 0, 1658119330), 4 | (144937, 287622, 184017, 311637, 0, 0, 0, 1658141731), 5 | (144938, 287622, 184017, 311638, 0, 0, 0, 1658141760), 6 | (144939, 287622, 184017, 311639, 0, 0, 0, 1658141782), 7 | (157375, 679558, 184017, 315707, 0, 0, 0, 1671844100), 8 | (157376, 679558, 184017, 315708, 0, 0, 0, 1671844176), 9 | (168120, 287622, 184017, 319484, 0, 0, 0, 1680065731), 10 | (174104, 287622, 184017, 319486, 0, 0, 0, 1685954209), 11 | (212172, 233345, 184017, 338196, 0, 0, 0, 1718016081), 12 | (213421, 878799, 184017, 340047, 0, 0, 0, 1719098897), 13 | (230593, 233345, 184017, 345911, 0, 0, 0, 1730118414); 14 | -------------------------------------------------------------------------------- /sql/data/chii_tag_neue_fields.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `chii_tag_neue_fields` (`field_tid`, `field_summary`, `field_order`, `field_nsfw`, `field_lock`) VALUES 2 | (132, '', 0, 0, 0), 3 | (1278, '', 0, 0, 0), 4 | (1299, '', 0, 0, 0), 5 | (3446, '', 0, 0, 0), 6 | (14926, '', 0, 0, 0), 7 | (19084, '', 0, 0, 0), 8 | (75426, '', 0, 0, 0), 9 | (85766, '', 0, 0, 0), 10 | (86309, '', 0, 0, 0), 11 | (106981, '', 0, 0, 0), 12 | (268202, '', 0, 0, 0), 13 | (416240, '', 20001, 0, 1), 14 | (416241, '', 20010, 0, 1), 15 | (416242, '', 20003, 0, 1), 16 | (416243, '', 20005, 0, 1), 17 | (416244, '', 20007, 0, 1), 18 | (416245, '', 21000, 0, 0), 19 | (416247, '', 40001, 0, 1), 20 | (416248, '', 40003, 0, 1), 21 | (416249, '', 40002, 0, 1), 22 | (416250, '', 40004, 0, 1), 23 | (416251, '', 41000, 0, 0), 24 | (416252, '', 42000, 0, 0), 25 | (416253, '', 42000, 0, 0), 26 | (416254, '', 42000, 0, 0), 27 | (416261, '', 21000, 0, 1), 28 | (416262, '', 21000, 0, 0), 29 | (416263, '', 20004, 0, 1), 30 | (416269, '', 10000, 0, 1), 31 | (416270, '', 10010, 0, 1), 32 | (416271, '', 10005, 0, 1), 33 | (416272, '', 10007, 0, 1), 34 | (416273, '', 10008, 0, 1), 35 | (416275, '', 12000, 0, 0), 36 | (416276, '', 30000, 0, 1), 37 | (416277, '', 30005, 0, 1), 38 | (416278, '', 30004, 0, 1), 39 | (416279, '', 30006, 0, 1), 40 | (416280, '', 32000, 0, 0), 41 | (416281, '', 31000, 0, 0), 42 | (416282, '', 30008, 0, 1), 43 | (416283, '', 60000, 0, 1), 44 | (416284, '', 60010, 0, 1), 45 | (416285, '', 60002, 0, 1), 46 | (416286, '', 60003, 0, 1), 47 | (416287, '', 60004, 0, 1), 48 | (416288, '', 61000, 0, 0), 49 | (416289, '', 61000, 0, 0), 50 | (416292, '', 22000, 0, 0), 51 | (416293, '', 22000, 0, 0), 52 | (416294, '', 22000, 0, 0), 53 | (416295, '', 12000, 0, 0), 54 | (416297, '', 10006, 0, 1), 55 | (416298, '', 62000, 0, 0), 56 | (416301, '', 30001, 0, 1), 57 | (416303, '', 30007, 0, 1), 58 | (416304, '', 30002, 0, 1), 59 | (416305, '', 40005, 0, 1), 60 | (416306, '', 30003, 0, 1), 61 | (416316, '', 11000, 0, 1), 62 | (416345, '', 10004, 0, 1), 63 | (416349, '', 20006, 0, 1), 64 | (416381, '', 10003, 0, 1); 65 | -------------------------------------------------------------------------------- /sql/data/chii_usergroup.sql: -------------------------------------------------------------------------------- 1 | insert into chii_usergroup (usr_grp_id, usr_grp_name, usr_grp_perm, usr_grp_dateline) 2 | values (10, '普通用户', 'a:14:{s:9:"user_list";s:1:"1";s:17:"manage_user_group";s:1:"1";s:11:"manage_user";s:1:"1";s:19:"doujin_subject_lock";s:1:"1";s:12:"subject_edit";s:1:"1";s:12:"subject_lock";s:1:"1";s:15:"subject_refresh";s:1:"1";s:15:"subject_related";s:1:"1";s:10:"mono_merge";s:1:"1";s:10:"mono_erase";s:1:"1";s:7:"ep_edit";s:1:"1";s:7:"ep_move";s:1:"1";s:6:"report";s:1:"1";s:9:"app_erase";s:1:"1";}', 1304011366), 3 | (11, 'wiki人', 'a:15:{s:9:"user_list";s:1:"1";s:17:"manage_user_group";s:1:"1";s:11:"manage_user";s:1:"1";s:19:"doujin_subject_lock";s:1:"1";s:12:"subject_edit";s:1:"1";s:12:"subject_lock";s:1:"1";s:15:"subject_refresh";s:1:"1";s:15:"subject_related";s:1:"1";s:10:"mono_merge";s:1:"1";s:10:"mono_erase";s:1:"1";s:7:"ep_edit";s:1:"1";s:7:"ep_move";s:1:"1";s:6:"report";s:1:"1";s:9:"app_erase";s:1:"1";s:19:"subject_cover_erase";s:1:"1";}', 1304011366); -------------------------------------------------------------------------------- /sql/schema/chii_app_collects.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_app_collects` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_app_collects`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_app_collects` ( 23 | `app_clt_id` mediumint(8) NOT NULL AUTO_INCREMENT, 24 | `app_clt_app_id` mediumint(8) NOT NULL, 25 | `app_clt_uid` mediumint(8) NOT NULL, 26 | `app_clt_dateline` int(10) NOT NULL, 27 | PRIMARY KEY (`app_clt_id`), 28 | KEY `amb_app_id` (`app_clt_app_id`,`app_clt_uid`), 29 | KEY `app_clt_uid` (`app_clt_uid`) 30 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_apps.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_apps` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_apps`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_apps` ( 23 | `app_id` mediumint(8) NOT NULL AUTO_INCREMENT, 24 | `app_type` tinyint(1) NOT NULL, 25 | `app_creator` mediumint(8) NOT NULL, 26 | `app_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, 27 | `app_desc` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, 28 | `app_url` varchar(2000) COLLATE utf8mb4_unicode_ci NOT NULL, 29 | `app_is_third_party` tinyint(1) unsigned NOT NULL, 30 | `app_collects` mediumint(8) NOT NULL, 31 | `app_status` tinyint(1) NOT NULL, 32 | `app_timestamp` int(10) NOT NULL, 33 | `app_lasttouch` int(10) NOT NULL, 34 | `app_ban` tinyint(1) NOT NULL, 35 | PRIMARY KEY (`app_id`), 36 | KEY `app_type` (`app_type`,`app_creator`), 37 | KEY `app_ban` (`app_ban`), 38 | KEY `app_status` (`app_status`) 39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 40 | /*!40101 SET character_set_client = @saved_cs_client */; 41 | 42 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 43 | 44 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 45 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 46 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 47 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 48 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 49 | 50 | -- Dump completed 51 | -------------------------------------------------------------------------------- /sql/schema/chii_blog_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_blog_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_blog_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_blog_comments` ( 23 | `blg_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `blg_pst_mid` mediumint(8) unsigned NOT NULL COMMENT '关联日志ID', 25 | `blg_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `blg_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `blg_pst_dateline` int(10) unsigned NOT NULL, 28 | `blg_pst_content` mediumtext NOT NULL, 29 | PRIMARY KEY (`blg_pst_id`), 30 | KEY `blg_cmt_eid` (`blg_pst_mid`), 31 | KEY `blg_cmt_uid` (`blg_pst_uid`), 32 | KEY `blg_pst_related` (`blg_pst_related`) 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_blog_entry.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_blog_entry` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_blog_entry`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_blog_entry` ( 23 | `entry_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `entry_type` smallint(6) unsigned NOT NULL, 25 | `entry_uid` mediumint(8) unsigned NOT NULL, 26 | `entry_title` varchar(80) NOT NULL, 27 | `entry_icon` varchar(255) NOT NULL, 28 | `entry_content` mediumtext NOT NULL, 29 | `entry_tags` mediumtext NOT NULL, 30 | `entry_views` mediumint(8) unsigned NOT NULL, 31 | `entry_replies` mediumint(8) unsigned NOT NULL, 32 | `entry_dateline` int(10) unsigned NOT NULL, 33 | `entry_lastpost` int(10) unsigned NOT NULL, 34 | `entry_like` int(8) unsigned NOT NULL, 35 | `entry_dislike` int(8) unsigned NOT NULL, 36 | `entry_noreply` smallint(3) unsigned NOT NULL, 37 | `entry_related` tinyint(3) unsigned NOT NULL DEFAULT '0', 38 | `entry_public` tinyint(1) NOT NULL DEFAULT '1', 39 | PRIMARY KEY (`entry_id`), 40 | KEY `entry_type` (`entry_type`,`entry_uid`,`entry_noreply`), 41 | KEY `entry_relate` (`entry_related`), 42 | KEY `entry_public` (`entry_public`), 43 | KEY `entry_dateline` (`entry_dateline`), 44 | KEY `entry_uid` (`entry_uid`,`entry_public`) 45 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 46 | /*!40101 SET character_set_client = @saved_cs_client */; 47 | 48 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 49 | 50 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 51 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 52 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 53 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 54 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 55 | 56 | -- Dump completed 57 | -------------------------------------------------------------------------------- /sql/schema/chii_blog_photo.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_blog_photo` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_blog_photo`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_blog_photo` ( 23 | `photo_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `photo_eid` mediumint(8) unsigned NOT NULL, 25 | `photo_uid` mediumint(8) unsigned NOT NULL, 26 | `photo_target` varchar(255) NOT NULL, 27 | `photo_vote` mediumint(8) unsigned NOT NULL, 28 | `photo_dateline` int(10) unsigned NOT NULL, 29 | PRIMARY KEY (`photo_id`), 30 | KEY `photo_eid` (`photo_eid`) 31 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_characters.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_characters` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_characters`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_characters` ( 23 | `crt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `crt_name` varchar(255) NOT NULL, 25 | `crt_role` tinyint(4) unsigned NOT NULL COMMENT '角色,机体,组织。。', 26 | `crt_infobox` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, 27 | `crt_summary` mediumtext NOT NULL, 28 | `crt_img` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, 29 | `crt_comment` mediumint(9) unsigned NOT NULL DEFAULT '0', 30 | `crt_collects` mediumint(8) unsigned NOT NULL, 31 | `crt_dateline` int(10) unsigned NOT NULL, 32 | `crt_lastpost` int(11) unsigned NOT NULL, 33 | `crt_lock` tinyint(4) NOT NULL DEFAULT '0', 34 | `crt_img_anidb` varchar(255) CHARACTER SET utf8 NOT NULL, 35 | `crt_anidb_id` mediumint(8) unsigned NOT NULL, 36 | `crt_ban` tinyint(3) unsigned NOT NULL DEFAULT '0', 37 | `crt_redirect` int(10) unsigned NOT NULL DEFAULT '0', 38 | `crt_nsfw` tinyint(1) unsigned NOT NULL, 39 | PRIMARY KEY (`crt_id`), 40 | KEY `crt_role` (`crt_role`), 41 | KEY `crt_lock` (`crt_lock`), 42 | KEY `crt_ban` (`crt_ban`), 43 | KEY `crt_collects` (`crt_collects`), 44 | KEY `crt_comment` (`crt_comment`) 45 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 46 | /*!40101 SET character_set_client = @saved_cs_client */; 47 | 48 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 49 | 50 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 51 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 52 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 53 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 54 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 55 | 56 | -- Dump completed 57 | -------------------------------------------------------------------------------- /sql/schema/chii_crt_cast_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_crt_cast_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_crt_cast_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_crt_cast_index` ( 23 | `crt_id` mediumint(9) unsigned NOT NULL, 24 | `prsn_id` mediumint(9) unsigned NOT NULL, 25 | `subject_id` mediumint(9) unsigned NOT NULL, 26 | `subject_type_id` tinyint(3) unsigned NOT NULL COMMENT '根据人物归类查询角色,动画,书籍,游戏', 27 | `summary` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '幼年,男乱马,女乱马,变身形态,少女形态。。', 28 | PRIMARY KEY (`crt_id`,`prsn_id`,`subject_id`), 29 | KEY `prsn_id` (`prsn_id`), 30 | KEY `subject_id` (`subject_id`), 31 | KEY `subject_type_id` (`subject_type_id`) 32 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_crt_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_crt_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_crt_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_crt_comments` ( 23 | `crt_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `crt_pst_mid` mediumint(8) unsigned NOT NULL COMMENT '关联人物ID', 25 | `crt_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `crt_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `crt_pst_dateline` int(10) unsigned NOT NULL, 28 | `crt_pst_content` mediumtext CHARACTER SET utf8 NOT NULL, 29 | `crt_pst_state` tinyint(1) unsigned NOT NULL, 30 | PRIMARY KEY (`crt_pst_id`), 31 | KEY `cmt_crt_id` (`crt_pst_mid`), 32 | KEY `crt_pst_related` (`crt_pst_related`), 33 | KEY `crt_pst_uid` (`crt_pst_uid`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_crt_revisions.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_crt_revisions` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_crt_revisions`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_crt_revisions` ( 23 | `rev_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rev_crt_id` mediumint(8) unsigned NOT NULL, 25 | `rev_crt_name` varchar(80) NOT NULL, 26 | `rev_crt_name_cn` varchar(80) NOT NULL, 27 | `rev_crt_info_wiki` mediumtext NOT NULL, 28 | `rev_crt_summary` mediumtext NOT NULL, 29 | `rev_dateline` int(10) unsigned NOT NULL, 30 | `rev_creator` mediumint(8) unsigned NOT NULL, 31 | `rev_edit_summary` varchar(200) NOT NULL, 32 | PRIMARY KEY (`rev_id`), 33 | KEY `rev_crt_id` (`rev_crt_id`), 34 | KEY `rev_crt_creator` (`rev_creator`) 35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_crt_subject_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_crt_subject_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_crt_subject_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_crt_subject_index` ( 23 | `crt_id` mediumint(9) unsigned NOT NULL, 24 | `subject_id` mediumint(9) unsigned NOT NULL, 25 | `subject_type_id` tinyint(4) unsigned NOT NULL, 26 | `crt_type` tinyint(4) unsigned NOT NULL COMMENT '主角,配角', 27 | `ctr_appear_eps` mediumtext COLLATE utf8_unicode_ci NOT NULL COMMENT '可选,角色出场的的章节', 28 | `crt_order` smallint(6) unsigned NOT NULL, 29 | PRIMARY KEY (`crt_id`,`subject_id`), 30 | KEY `subject_id` (`subject_id`), 31 | KEY `crt_type` (`crt_type`), 32 | KEY `subject_type_id` (`subject_type_id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_crt_subject_index_bak_240803.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_crt_subject_index_bak_240803` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_crt_subject_index_bak_240803`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_crt_subject_index_bak_240803` ( 23 | `crt_id` mediumint(9) unsigned NOT NULL, 24 | `subject_id` mediumint(9) unsigned NOT NULL, 25 | `subject_type_id` tinyint(4) unsigned NOT NULL, 26 | `crt_type` tinyint(4) unsigned NOT NULL COMMENT '主角,配角', 27 | `ctr_appear_eps` mediumtext COLLATE utf8_unicode_ci NOT NULL COMMENT '可选,角色出场的的章节', 28 | `crt_order` tinyint(3) unsigned NOT NULL, 29 | PRIMARY KEY (`crt_id`,`subject_id`), 30 | KEY `subject_id` (`subject_id`), 31 | KEY `crt_type` (`crt_type`), 32 | KEY `subject_type_id` (`subject_type_id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_comments` ( 23 | `club_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `club_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `club_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `club_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `club_pst_dateline` int(10) unsigned NOT NULL, 28 | `club_pst_content` mediumtext NOT NULL, 29 | PRIMARY KEY (`club_pst_id`), 30 | KEY `club_pst_mid` (`club_pst_mid`), 31 | KEY `club_pst_related` (`club_pst_related`), 32 | KEY `club_pst_uid` (`club_pst_uid`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_fields.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_fields` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_fields`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_fields` ( 23 | `cf_cid` mediumint(8) unsigned NOT NULL, 24 | `cf_header` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 25 | `cf_bg` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 26 | `cf_theme` tinyint(3) unsigned NOT NULL DEFAULT '1', 27 | `cf_design` mediumtext COLLATE utf8_unicode_ci NOT NULL, 28 | `cf_model` mediumtext COLLATE utf8_unicode_ci NOT NULL, 29 | UNIQUE KEY `cf_cid` (`cf_cid`), 30 | KEY `cf_theme` (`cf_theme`) 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_members.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_members` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_members`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_members` ( 23 | `cmb_uid` mediumint(8) unsigned NOT NULL, 24 | `cmb_cid` mediumint(8) unsigned NOT NULL, 25 | `cmb_moderator` tinyint(3) unsigned NOT NULL, 26 | `cmb_perm` mediumtext COLLATE utf8_unicode_ci NOT NULL COMMENT '个人权限', 27 | `cmb_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 28 | `cmb_deteline` int(10) unsigned NOT NULL, 29 | PRIMARY KEY (`cmb_uid`,`cmb_cid`), 30 | KEY `query_followers` (`cmb_moderator`,`cmb_cid`,`cmb_deteline`) 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_posts.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_posts` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_posts`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_posts` ( 23 | `club_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `club_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `club_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `club_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `club_pst_content` mediumtext NOT NULL, 28 | `club_pst_dateline` int(10) unsigned NOT NULL DEFAULT '0', 29 | PRIMARY KEY (`club_pst_id`), 30 | KEY `pss_topic_id` (`club_pst_mid`), 31 | KEY `club_pst_related` (`club_pst_related`), 32 | KEY `club_pst_uid` (`club_pst_uid`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_related_blog.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_related_blog` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_related_blog`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_related_blog` ( 23 | `crb_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `crb_uid` mediumint(8) unsigned NOT NULL, 25 | `crb_club_id` mediumint(8) unsigned NOT NULL, 26 | `crb_entry_id` mediumint(8) unsigned NOT NULL, 27 | `crb_stick` tinyint(1) unsigned NOT NULL DEFAULT '0', 28 | `crb_dateline` int(10) NOT NULL, 29 | PRIMARY KEY (`crb_id`), 30 | KEY `crb_club_id` (`crb_club_id`,`crb_entry_id`), 31 | KEY `crb_entry_id` (`crb_entry_id`) 32 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_timeline.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_timeline` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_timeline`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_timeline` ( 23 | `tml_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `tml_cid` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `tml_type` smallint(6) unsigned NOT NULL DEFAULT '0', 26 | `tml_related` char(255) NOT NULL DEFAULT '0', 27 | `tml_memo` mediumtext NOT NULL, 28 | `tml_dateline` int(10) unsigned NOT NULL DEFAULT '0', 29 | PRIMARY KEY (`tml_id`), 30 | KEY `tml_uid` (`tml_cid`), 31 | KEY `id_uid` (`tml_id`,`tml_cid`) 32 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_club_topics.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_club_topics` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_club_topics`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_club_topics` ( 23 | `club_tpc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `club_tpc_club_id` mediumint(8) unsigned NOT NULL, 25 | `club_tpc_uid` mediumint(8) unsigned NOT NULL, 26 | `club_tpc_title` varchar(80) NOT NULL, 27 | `club_tpc_dateline` int(10) unsigned NOT NULL DEFAULT '0', 28 | `club_tpc_lastpost` int(10) unsigned NOT NULL DEFAULT '0', 29 | `club_tpc_replies` mediumint(8) unsigned NOT NULL DEFAULT '0', 30 | `club_tpc_display` tinyint(1) unsigned NOT NULL DEFAULT '1', 31 | PRIMARY KEY (`club_tpc_id`), 32 | KEY `tpc_subject_id` (`club_tpc_club_id`), 33 | KEY `tpc_display` (`club_tpc_display`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_clubs.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_clubs` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_clubs`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_clubs` ( 23 | `club_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `club_type` tinyint(3) unsigned NOT NULL COMMENT '社团类型 0=社团 1=主办方', 25 | `club_name` char(50) COLLATE utf8_unicode_ci NOT NULL, 26 | `club_title` char(50) COLLATE utf8_unicode_ci NOT NULL, 27 | `club_icon` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 28 | `club_creator` mediumint(8) unsigned NOT NULL, 29 | `club_pro_book` tinyint(1) unsigned NOT NULL DEFAULT '0', 30 | `club_pro_music` tinyint(1) unsigned NOT NULL DEFAULT '0', 31 | `club_pro_game` tinyint(1) unsigned NOT NULL DEFAULT '0', 32 | `club_members` mediumint(8) unsigned NOT NULL, 33 | `club_followers` mediumint(8) unsigned NOT NULL, 34 | `club_desc` mediumtext COLLATE utf8_unicode_ci NOT NULL, 35 | `club_builddate` int(10) unsigned NOT NULL, 36 | `club_lastupdate` int(10) unsigned NOT NULL, 37 | `club_ban` tinyint(3) unsigned NOT NULL DEFAULT '0', 38 | PRIMARY KEY (`club_id`), 39 | KEY `club_type` (`club_type`,`club_ban`), 40 | KEY `club_name` (`club_name`) 41 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='社团'; 42 | /*!40101 SET character_set_client = @saved_cs_client */; 43 | 44 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 45 | 46 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 47 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 48 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 49 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 50 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 51 | 52 | -- Dump completed 53 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_invites.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_invites` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_invites`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_invites` ( 23 | `uid` mediumint(8) unsigned NOT NULL, 24 | `dateline` int(10) unsigned NOT NULL, 25 | `invitecode` char(19) COLLATE utf8_unicode_ci NOT NULL, 26 | `status` tinyint(1) unsigned NOT NULL DEFAULT '0', 27 | `invite_uid` mediumint(8) unsigned NOT NULL, 28 | KEY `uid` (`uid`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_preorder.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_preorder` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_preorder`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_preorder` ( 23 | `pre_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `pre_uid` mediumint(8) unsigned NOT NULL, 25 | `pre_type` tinyint(3) unsigned NOT NULL, 26 | `pre_mid` mediumint(8) unsigned NOT NULL, 27 | `pre_details` mediumtext COLLATE utf8_unicode_ci NOT NULL, 28 | `pre_dateline` int(10) unsigned NOT NULL, 29 | PRIMARY KEY (`pre_id`), 30 | KEY `pre_uid` (`pre_uid`,`pre_type`,`pre_mid`) 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_preorder_return.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_preorder_return` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_preorder_return`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_preorder_return` ( 23 | `rt_id` bigint(20) unsigned NOT NULL, 24 | `rt_pid` int(10) unsigned NOT NULL AUTO_INCREMENT, 25 | `rt_uid` mediumint(8) unsigned NOT NULL COMMENT '提交 UID (可为空)', 26 | `rt_status` tinyint(1) unsigned NOT NULL COMMENT '处理状态', 27 | `rt_juiz` mediumint(8) unsigned NOT NULL COMMENT '受理人', 28 | `rt_paymail` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 29 | `rt_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 30 | `rt_realname` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 31 | `rt_uname` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 32 | `rt_remark` text COLLATE utf8_unicode_ci NOT NULL, 33 | `rt_comment` text COLLATE utf8_unicode_ci NOT NULL, 34 | `rt_dateline` int(10) unsigned NOT NULL, 35 | UNIQUE KEY `rt_id_2` (`rt_id`), 36 | KEY `rt_id` (`rt_id`,`rt_status`), 37 | KEY `rt_pid` (`rt_pid`) 38 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 39 | /*!40101 SET character_set_client = @saved_cs_client */; 40 | 41 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 42 | 43 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 44 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 45 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 46 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 47 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 48 | 49 | -- Dump completed 50 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_attr_tags.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_attr_tags` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_attr_tags`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_attr_tags` ( 23 | `subject_id` mediumint(8) unsigned NOT NULL, 24 | `tag_id` tinyint(3) unsigned NOT NULL, 25 | UNIQUE KEY `subject_id` (`subject_id`,`tag_id`) 26 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='属性标签索引表'; 27 | /*!40101 SET character_set_client = @saved_cs_client */; 28 | 29 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 30 | 31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 32 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 33 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 34 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 35 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 36 | 37 | -- Dump completed 38 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_club_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_club_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_club_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_club_index` ( 23 | `subject_id` mediumint(8) unsigned NOT NULL, 24 | `club_id` mediumint(8) unsigned NOT NULL, 25 | `subject_type` tinyint(1) unsigned NOT NULL COMMENT '条目类型', 26 | `club_role` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '社团职务 0=未知 1=主催 2=协作', 27 | UNIQUE KEY `subject_id` (`subject_id`,`club_id`), 28 | KEY `subject_type` (`subject_type`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_collects.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_collects` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_collects`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_collects` ( 23 | `clt_uid` mediumint(8) unsigned NOT NULL, 24 | `clt_subject_id` mediumint(8) unsigned NOT NULL, 25 | `clt_subject_type` tinyint(3) unsigned NOT NULL, 26 | `clt_dateline` int(10) unsigned NOT NULL, 27 | UNIQUE KEY `clt_uid` (`clt_uid`,`clt_subject_id`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_comments` ( 23 | `sbj_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `sbj_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `sbj_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `sbj_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `sbj_pst_related_photo` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '关联图片', 28 | `sbj_pst_dateline` int(10) unsigned NOT NULL, 29 | `sbj_pst_content` mediumtext NOT NULL, 30 | PRIMARY KEY (`sbj_pst_id`), 31 | KEY `sbj_pst_mid` (`sbj_pst_mid`), 32 | KEY `sbj_pst_related` (`sbj_pst_related`), 33 | KEY `sbj_related_photo` (`sbj_pst_related_photo`), 34 | KEY `sbj_pst_uid` (`sbj_pst_uid`) 35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_event_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_event_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_event_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_event_index` ( 23 | `event_id` mediumint(8) unsigned NOT NULL, 24 | `subject_id` mediumint(8) unsigned NOT NULL, 25 | `subject_type` tinyint(3) unsigned NOT NULL, 26 | `dateline` int(10) unsigned NOT NULL, 27 | UNIQUE KEY `event_id` (`event_id`,`subject_id`), 28 | KEY `subject_type` (`subject_type`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='关联展会'; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_doujin_subject_photos.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_doujin_subject_photos` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_doujin_subject_photos`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_doujin_subject_photos` ( 23 | `sbj_photo_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `sbj_photo_mid` mediumint(8) unsigned NOT NULL, 25 | `sbj_photo_uid` mediumint(8) unsigned NOT NULL, 26 | `sbj_photo_target` text COLLATE utf8_unicode_ci NOT NULL, 27 | `sbj_photo_comment` mediumint(8) unsigned NOT NULL, 28 | `sbj_photo_dateline` int(10) unsigned NOT NULL, 29 | `sbj_photo_lasttouch` int(10) unsigned NOT NULL, 30 | `sbj_photo_ban` tinyint(1) unsigned NOT NULL, 31 | PRIMARY KEY (`sbj_photo_id`), 32 | KEY `sbj_photo_mid` (`sbj_photo_mid`), 33 | KEY `sbj_photo_uid` (`sbj_photo_uid`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_eden.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_eden` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_eden`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_eden` ( 23 | `eden_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, 24 | `eden_type` smallint(6) unsigned NOT NULL, 25 | `eden_name` char(50) NOT NULL, 26 | `eden_title` char(50) NOT NULL, 27 | `eden_icon` varchar(255) NOT NULL, 28 | `eden_header` varchar(255) NOT NULL, 29 | `eden_desc` mediumtext NOT NULL, 30 | `eden_relate_subject` mediumtext NOT NULL, 31 | `eden_relate_grp` mediumtext NOT NULL, 32 | `eden_members` mediumint(8) unsigned NOT NULL, 33 | `eden_lasttouch` int(10) unsigned NOT NULL, 34 | `eden_builddate` int(10) unsigned NOT NULL, 35 | `eden_pushdate` int(10) unsigned NOT NULL, 36 | PRIMARY KEY (`eden_id`), 37 | KEY `eden_type` (`eden_type`) 38 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 39 | /*!40101 SET character_set_client = @saved_cs_client */; 40 | 41 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 42 | 43 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 44 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 45 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 46 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 47 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 48 | 49 | -- Dump completed 50 | -------------------------------------------------------------------------------- /sql/schema/chii_eden_members.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_eden_members` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_eden_members`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_eden_members` ( 23 | `emb_uid` mediumint(8) NOT NULL DEFAULT '0', 24 | `emb_eid` smallint(6) NOT NULL DEFAULT '0', 25 | `emb_moderator` tinyint(1) NOT NULL DEFAULT '0', 26 | `emb_dateline` int(10) unsigned NOT NULL DEFAULT '0', 27 | PRIMARY KEY (`emb_uid`,`emb_eid`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_ep_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_ep_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_ep_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_ep_comments` ( 23 | `ep_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `ep_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `ep_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `ep_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `ep_pst_dateline` int(10) unsigned NOT NULL, 28 | `ep_pst_content` mediumtext NOT NULL, 29 | `ep_pst_state` tinyint(1) unsigned NOT NULL, 30 | PRIMARY KEY (`ep_pst_id`), 31 | KEY `ep_cmt_crt_id` (`ep_pst_mid`), 32 | KEY `ep_pst_related` (`ep_pst_related`), 33 | KEY `ep_pst_uid` (`ep_pst_uid`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_ep_revisions.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_ep_revisions` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_ep_revisions`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_ep_revisions` ( 23 | `ep_rev_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rev_sid` mediumint(8) unsigned NOT NULL, 25 | `rev_eids` varchar(255) NOT NULL, 26 | `rev_ep_infobox` mediumtext NOT NULL, 27 | `rev_creator` mediumint(8) unsigned NOT NULL, 28 | `rev_version` tinyint(1) unsigned NOT NULL DEFAULT '0', 29 | `rev_dateline` int(10) unsigned NOT NULL, 30 | `rev_edit_summary` varchar(200) NOT NULL, 31 | PRIMARY KEY (`ep_rev_id`), 32 | KEY `rev_sid` (`rev_sid`,`rev_creator`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_ep_status.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_ep_status` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_ep_status`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_ep_status` ( 23 | `ep_stt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `ep_stt_uid` mediumint(8) unsigned NOT NULL, 25 | `ep_stt_sid` mediumint(8) unsigned NOT NULL, 26 | `ep_stt_on_prg` tinyint(1) unsigned NOT NULL DEFAULT '0', 27 | `ep_stt_status` mediumtext NOT NULL, 28 | `ep_stt_lasttouch` int(10) unsigned NOT NULL, 29 | PRIMARY KEY (`ep_stt_id`), 30 | UNIQUE KEY `ep_stt_uniq` (`ep_stt_uid`,`ep_stt_sid`) USING BTREE 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_event_club_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_event_club_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_event_club_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_event_club_index` ( 23 | `event_id` mediumint(8) unsigned NOT NULL, 24 | `club_id` mediumint(8) unsigned NOT NULL, 25 | `club_place` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 26 | `dateline` int(10) unsigned NOT NULL, 27 | UNIQUE KEY `event_id` (`event_id`,`club_id`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='展会关联社团'; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_event_collects.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_event_collects` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_event_collects`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_event_collects` ( 23 | `clt_uid` mediumint(8) unsigned NOT NULL, 24 | `clt_event_id` mediumint(8) unsigned NOT NULL, 25 | `clt_type` tinyint(3) unsigned NOT NULL, 26 | `clt_dateline` int(10) unsigned NOT NULL, 27 | UNIQUE KEY `clt_uid` (`clt_uid`,`clt_event_id`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_event_posts.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_event_posts` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_event_posts`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_event_posts` ( 23 | `event_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `event_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `event_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `event_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `event_pst_content` mediumtext NOT NULL, 28 | `event_pst_dateline` int(10) unsigned NOT NULL DEFAULT '0', 29 | PRIMARY KEY (`event_pst_id`), 30 | KEY `pst_topic_id` (`event_pst_mid`), 31 | KEY `event_pst_related` (`event_pst_related`), 32 | KEY `event_pst_uid` (`event_pst_uid`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_event_topics.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_event_topics` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_event_topics`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_event_topics` ( 23 | `event_tpc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `event_tpc_mid` mediumint(8) unsigned NOT NULL, 25 | `event_tpc_uid` mediumint(8) unsigned NOT NULL, 26 | `event_tpc_title` varchar(80) NOT NULL, 27 | `event_tpc_dateline` int(10) unsigned NOT NULL DEFAULT '0', 28 | `event_tpc_lastpost` int(10) unsigned NOT NULL DEFAULT '0', 29 | `event_tpc_replies` mediumint(8) unsigned NOT NULL DEFAULT '0', 30 | `event_tpc_display` tinyint(1) unsigned NOT NULL DEFAULT '1', 31 | PRIMARY KEY (`event_tpc_id`), 32 | KEY `tpc_relate_id` (`event_tpc_mid`), 33 | KEY `tpc_display` (`event_tpc_display`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_failedlogins.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_failedlogins` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_failedlogins`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_failedlogins` ( 23 | `ip` char(15) NOT NULL DEFAULT '', 24 | `count` tinyint(1) unsigned NOT NULL DEFAULT '0', 25 | `lastupdate` int(10) unsigned NOT NULL DEFAULT '0', 26 | PRIMARY KEY (`ip`) 27 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 28 | /*!40101 SET character_set_client = @saved_cs_client */; 29 | 30 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 31 | 32 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 33 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 34 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 35 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 36 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 37 | 38 | -- Dump completed 39 | -------------------------------------------------------------------------------- /sql/schema/chii_friends.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_friends` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_friends`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_friends` ( 23 | `frd_uid` mediumint(8) unsigned NOT NULL DEFAULT '0', 24 | `frd_fid` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `frd_grade` tinyint(3) unsigned NOT NULL DEFAULT '1', 26 | `frd_dateline` int(10) unsigned NOT NULL DEFAULT '0', 27 | `frd_description` char(255) NOT NULL, 28 | KEY `uid` (`frd_uid`), 29 | KEY `frd_fid` (`frd_fid`) 30 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_gadgets.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_gadgets` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_gadgets`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_gadgets` ( 23 | `gdt_id` mediumint(8) NOT NULL AUTO_INCREMENT, 24 | `gdt_app_id` mediumint(8) NOT NULL, 25 | `gdt_version` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, 26 | `gdt_creator` mediumint(8) NOT NULL, 27 | `gdt_script` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, 28 | `gdt_style` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, 29 | `gdt_has_script` tinyint(1) NOT NULL, 30 | `gdt_has_style` tinyint(1) NOT NULL, 31 | `gdt_status` tinyint(1) NOT NULL, 32 | `gdt_edit_summary` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, 33 | `gdt_timestamp` int(10) NOT NULL, 34 | `gdt_lasttouch` int(10) NOT NULL, 35 | PRIMARY KEY (`gdt_id`), 36 | KEY `gdt_app_id` (`gdt_app_id`,`gdt_status`) 37 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 38 | /*!40101 SET character_set_client = @saved_cs_client */; 39 | 40 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 41 | 42 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 43 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 44 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 45 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 46 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 47 | 48 | -- Dump completed 49 | -------------------------------------------------------------------------------- /sql/schema/chii_group_members.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_group_members` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_group_members`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_group_members` ( 23 | `gmb_uid` mediumint(8) NOT NULL DEFAULT '0', 24 | `gmb_gid` smallint(6) NOT NULL DEFAULT '0', 25 | `gmb_moderator` tinyint(1) NOT NULL DEFAULT '0', 26 | `gmb_ban` tinyint(1) UNSIGNED NOT NULL, 27 | `gmb_dateline` int(10) unsigned NOT NULL DEFAULT '0', 28 | PRIMARY KEY (`gmb_uid`,`gmb_gid`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_group_posts.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_group_posts` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_group_posts`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_group_posts` ( 23 | `grp_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `grp_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `grp_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `grp_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '关联回复ID', 27 | `grp_pst_content` mediumtext NOT NULL, 28 | `grp_pst_state` tinyint(1) unsigned NOT NULL, 29 | `grp_pst_dateline` int(10) unsigned NOT NULL DEFAULT '0', 30 | PRIMARY KEY (`grp_pst_id`), 31 | KEY `pss_topic_id` (`grp_pst_mid`), 32 | KEY `grp_pst_related` (`grp_pst_related`), 33 | KEY `grp_pst_uid` (`grp_pst_uid`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_group_topics.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_group_topics` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_group_topics`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_group_topics` ( 23 | `grp_tpc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `grp_tpc_gid` mediumint(8) unsigned NOT NULL, 25 | `grp_tpc_uid` mediumint(8) unsigned NOT NULL, 26 | `grp_tpc_title` varchar(80) NOT NULL, 27 | `grp_tpc_dateline` int(10) unsigned NOT NULL DEFAULT '0', 28 | `grp_tpc_lastpost` int(10) unsigned NOT NULL DEFAULT '0', 29 | `grp_tpc_replies` mediumint(8) unsigned NOT NULL DEFAULT '0', 30 | `grp_tpc_state` tinyint(1) unsigned NOT NULL, 31 | `grp_tpc_display` tinyint(1) unsigned NOT NULL DEFAULT '1', 32 | PRIMARY KEY (`grp_tpc_id`), 33 | KEY `grp_tpc_gid` (`grp_tpc_gid`), 34 | KEY `grp_tpc_display` (`grp_tpc_display`), 35 | KEY `grp_tpc_uid` (`grp_tpc_uid`), 36 | KEY `grp_tpc_lastpost` (`grp_tpc_lastpost`) 37 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 38 | /*!40101 SET character_set_client = @saved_cs_client */; 39 | 40 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 41 | 42 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 43 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 44 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 45 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 46 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 47 | 48 | -- Dump completed 49 | -------------------------------------------------------------------------------- /sql/schema/chii_groups.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_groups` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_groups`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_groups` ( 23 | `grp_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, 24 | `grp_cat` smallint(6) unsigned NOT NULL DEFAULT '0', 25 | `grp_name` char(50) NOT NULL, 26 | `grp_title` char(50) NOT NULL, 27 | `grp_icon` varchar(255) NOT NULL, 28 | `grp_creator` mediumint(8) unsigned NOT NULL DEFAULT '0', 29 | `grp_topics` mediumint(8) unsigned NOT NULL DEFAULT '0', 30 | `grp_posts` mediumint(8) unsigned NOT NULL DEFAULT '0', 31 | `grp_members` mediumint(8) unsigned NOT NULL DEFAULT '1', 32 | `grp_desc` text NOT NULL, 33 | `grp_lastpost` int(10) unsigned NOT NULL, 34 | `grp_builddate` int(10) unsigned NOT NULL, 35 | `grp_accessible` tinyint(1) NOT NULL DEFAULT '1' COMMENT '可访问性', 36 | `grp_nsfw` tinyint(1) unsigned NOT NULL, 37 | PRIMARY KEY (`grp_id`), 38 | KEY `grp_nsfw` (`grp_nsfw`) 39 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 40 | /*!40101 SET character_set_client = @saved_cs_client */; 41 | 42 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 43 | 44 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 45 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 46 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 47 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 48 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 49 | 50 | -- Dump completed 51 | -------------------------------------------------------------------------------- /sql/schema/chii_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_index` ( 23 | `idx_id` mediumint(8) NOT NULL AUTO_INCREMENT COMMENT '自动id', 24 | `idx_type` tinyint(3) unsigned NOT NULL DEFAULT '0', 25 | `idx_title` varchar(80) NOT NULL COMMENT '标题', 26 | `idx_desc` mediumtext NOT NULL COMMENT '简介', 27 | `idx_replies` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '回复数', 28 | `idx_subject_total` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '内含条目总数', 29 | `idx_collects` mediumint(8) NOT NULL DEFAULT '0' COMMENT '收藏数', 30 | `idx_stats` mediumtext NOT NULL, 31 | `idx_award` mediumint(8) unsigned NOT NULL DEFAULT '0', 32 | `idx_dateline` int(10) NOT NULL COMMENT '创建时间', 33 | `idx_lasttouch` int(10) unsigned NOT NULL, 34 | `idx_uid` mediumint(8) NOT NULL COMMENT '创建人UID', 35 | `idx_ban` tinyint(1) unsigned NOT NULL DEFAULT '0', 36 | UNIQUE KEY `mid` (`idx_id`), 37 | KEY `idx_ban` (`idx_ban`), 38 | KEY `idx_type` (`idx_type`), 39 | KEY `idx_uid` (`idx_uid`), 40 | KEY `idx_collects` (`idx_collects`), 41 | KEY `idx_award` (`idx_award`) 42 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 43 | /*!40101 SET character_set_client = @saved_cs_client */; 44 | 45 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 46 | 47 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 48 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 49 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 50 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 51 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 52 | 53 | -- Dump completed 54 | -------------------------------------------------------------------------------- /sql/schema/chii_index_collects.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_index_collects` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_index_collects`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_index_collects` ( 23 | `idx_clt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `idx_clt_mid` mediumint(8) unsigned NOT NULL COMMENT '目录ID', 25 | `idx_clt_uid` mediumint(8) unsigned NOT NULL COMMENT '用户UID', 26 | `idx_clt_dateline` int(10) unsigned NOT NULL, 27 | PRIMARY KEY (`idx_clt_id`), 28 | KEY `idx_clt_mid` (`idx_clt_mid`,`idx_clt_uid`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='目录收藏'; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_index_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_index_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_index_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_index_comments` ( 23 | `idx_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `idx_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `idx_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `idx_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `idx_pst_dateline` int(10) unsigned NOT NULL, 28 | `idx_pst_content` mediumtext NOT NULL, 29 | PRIMARY KEY (`idx_pst_id`), 30 | KEY `idx_pst_mid` (`idx_pst_mid`), 31 | KEY `idx_pst_related` (`idx_pst_related`), 32 | KEY `idx_pst_uid` (`idx_pst_uid`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_index_related.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_index_related` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_index_related`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_index_related` ( 23 | `idx_rlt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `idx_rlt_cat` tinyint(3) NOT NULL, 25 | `idx_rlt_rid` mediumint(8) unsigned NOT NULL COMMENT '关联目录', 26 | `idx_rlt_type` smallint(6) unsigned NOT NULL COMMENT '关联条目类型', 27 | `idx_rlt_sid` mediumint(8) unsigned NOT NULL COMMENT '关联条目ID', 28 | `idx_rlt_order` mediumint(8) unsigned NOT NULL DEFAULT '0', 29 | `idx_rlt_award` varchar(255) CHARACTER SET utf8mb4 NOT NULL, 30 | `idx_rlt_comment` mediumtext NOT NULL, 31 | `idx_rlt_dateline` int(10) unsigned NOT NULL, 32 | `idx_rlt_ban` tinyint(1) unsigned NOT NULL DEFAULT '0', 33 | PRIMARY KEY (`idx_rlt_id`), 34 | KEY `idx_rlt_rid` (`idx_rlt_rid`,`idx_rlt_type`), 35 | KEY `idx_rlt_sid` (`idx_rlt_rid`,`idx_rlt_sid`) USING BTREE, 36 | KEY `idx_rlt_sid_2` (`idx_rlt_sid`), 37 | KEY `idx_rlt_cat` (`idx_rlt_cat`), 38 | KEY `idx_order` (`idx_rlt_rid`,`idx_rlt_cat`,`idx_rlt_order`,`idx_rlt_sid`) USING BTREE, 39 | KEY `idx_rlt_ban` (`idx_rlt_ban`), 40 | KEY `idx_rlt_award` (`idx_rlt_award`(250)) 41 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='目录关联表'; 42 | /*!40101 SET character_set_client = @saved_cs_client */; 43 | 44 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 45 | 46 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 47 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 48 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 49 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 50 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 51 | 52 | -- Dump completed 53 | -------------------------------------------------------------------------------- /sql/schema/chii_issues.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_issues` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_issues`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_issues` ( 23 | `isu_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `isu_type` tinyint(3) unsigned NOT NULL, 25 | `isu_main_id` mediumint(8) unsigned NOT NULL, 26 | `isu_value` mediumint(8) unsigned NOT NULL, 27 | `isu_creator` mediumint(8) unsigned NOT NULL, 28 | `isu_operator` mediumint(8) unsigned NOT NULL, 29 | `isu_status` tinyint(3) unsigned NOT NULL, 30 | `isu_reason` mediumtext NOT NULL, 31 | `isu_related` mediumint(8) unsigned NOT NULL, 32 | `isu_dateline` int(10) unsigned NOT NULL, 33 | PRIMARY KEY (`isu_id`), 34 | KEY `isu_type` (`isu_type`,`isu_main_id`,`isu_creator`,`isu_operator`,`isu_status`), 35 | KEY `isu_value` (`isu_value`) 36 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; 37 | /*!40101 SET character_set_client = @saved_cs_client */; 38 | 39 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 40 | 41 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 42 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 43 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 44 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 45 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 46 | 47 | -- Dump completed 48 | -------------------------------------------------------------------------------- /sql/schema/chii_likes.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_likes` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_likes`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_likes` ( 23 | `type` mediumint(8) unsigned NOT NULL, 24 | `main_id` int(10) unsigned NOT NULL DEFAULT '0', 25 | `related_id` int(10) unsigned NOT NULL, 26 | `uid` mediumint(8) unsigned NOT NULL, 27 | `value` mediumint(8) unsigned NOT NULL DEFAULT '0', 28 | `ban` tinyint(2) unsigned NOT NULL DEFAULT '0', 29 | `created_at` int(10) unsigned NOT NULL COMMENT 'unix timestamp seconds', 30 | PRIMARY KEY (`type`,`related_id`,`uid`), 31 | KEY `idx_uid` (`uid`), 32 | KEY `idx_related` (`related_id`), 33 | KEY `type` (`type`,`main_id`,`uid`), 34 | KEY `created_at` (`created_at`) 35 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_likes_bak_230331.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_likes_bak_230331` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_likes_bak_230331`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_likes_bak_230331` ( 23 | `type` mediumint(8) unsigned NOT NULL, 24 | `main_id` int(10) unsigned NOT NULL, 25 | `related_id` int(10) unsigned NOT NULL, 26 | `uid` mediumint(8) unsigned NOT NULL, 27 | `value` mediumint(8) unsigned NOT NULL DEFAULT '0', 28 | `ban` tinyint(2) unsigned NOT NULL DEFAULT '0', 29 | `created_at` int(10) unsigned NOT NULL COMMENT 'unix timestamp seconds', 30 | PRIMARY KEY (`type`,`related_id`,`uid`), 31 | KEY `idx_uid` (`uid`), 32 | KEY `idx_related` (`related_id`), 33 | KEY `type` (`type`,`main_id`,`uid`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_magi_answered.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_magi_answered` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_magi_answered`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_magi_answered` ( 23 | `asw_qid` mediumint(8) unsigned NOT NULL, 24 | `asw_uid` mediumint(8) unsigned NOT NULL, 25 | `asw_answer` tinyint(1) unsigned NOT NULL, 26 | `asw_result` tinyint(1) unsigned NOT NULL, 27 | `asw_dateline` int(10) unsigned NOT NULL, 28 | UNIQUE KEY `asw_qid` (`asw_qid`,`asw_uid`), 29 | KEY `asw_uid` (`asw_uid`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_magi_members.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_magi_members` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_magi_members`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_magi_members` ( 23 | `mgm_uid` mediumint(8) unsigned NOT NULL, 24 | `mgm_correct` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `mgm_answered` mediumint(8) unsigned NOT NULL DEFAULT '0', 26 | `mgm_created` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `mgm_rank` mediumint(8) unsigned NOT NULL DEFAULT '0', 28 | KEY `mgm_uid` (`mgm_uid`,`mgm_rank`), 29 | KEY `mgm_answered` (`mgm_uid`,`mgm_correct`,`mgm_answered`), 30 | KEY `mgm_created` (`mgm_created`) 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_magi_questions.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_magi_questions` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_magi_questions`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_magi_questions` ( 23 | `qst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `qst_type` tinyint(3) unsigned NOT NULL, 25 | `qst_content` mediumtext COLLATE utf8_unicode_ci NOT NULL, 26 | `qst_options` mediumtext COLLATE utf8_unicode_ci NOT NULL, 27 | `qst_answer` tinyint(1) unsigned NOT NULL, 28 | `qst_relate_type` tinyint(3) unsigned NOT NULL, 29 | `qst_related` mediumint(8) unsigned NOT NULL, 30 | `qst_correct` mediumint(8) unsigned NOT NULL, 31 | `qst_answered` mediumint(8) unsigned NOT NULL, 32 | `qst_creator` mediumint(8) unsigned NOT NULL, 33 | `qst_dateline` int(10) unsigned NOT NULL, 34 | `qst_ban` tinyint(1) unsigned NOT NULL DEFAULT '0', 35 | PRIMARY KEY (`qst_id`), 36 | KEY `qst_type` (`qst_type`), 37 | KEY `related` (`qst_relate_type`,`qst_related`), 38 | KEY `qst_ban` (`qst_ban`) 39 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 40 | /*!40101 SET character_set_client = @saved_cs_client */; 41 | 42 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 43 | 44 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 45 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 46 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 47 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 48 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 49 | 50 | -- Dump completed 51 | -------------------------------------------------------------------------------- /sql/schema/chii_network_services.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_network_services` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_network_services`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_network_services` ( 23 | `ns_uid` mediumint(8) unsigned NOT NULL, 24 | `ns_service_id` tinyint(3) unsigned NOT NULL, 25 | `ns_account` varchar(255) NOT NULL, 26 | `ns_dateline` int(10) unsigned NOT NULL, 27 | UNIQUE KEY `ns_uid` (`ns_uid`,`ns_service_id`), 28 | KEY `ns_uid_2` (`ns_uid`) 29 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_notify.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_notify` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_notify`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_notify` ( 23 | `nt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `nt_uid` mediumint(8) unsigned NOT NULL, 25 | `nt_from_uid` mediumint(8) unsigned NOT NULL, 26 | `nt_status` tinyint(1) unsigned NOT NULL DEFAULT '1', 27 | `nt_type` tinyint(3) unsigned NOT NULL DEFAULT '0', 28 | `nt_mid` mediumint(8) unsigned NOT NULL COMMENT 'ID in notify_field', 29 | `nt_related_id` int(10) unsigned NOT NULL, 30 | `nt_dateline` int(10) unsigned NOT NULL, 31 | PRIMARY KEY (`nt_id`), 32 | KEY `nt_uid` (`nt_uid`,`nt_status`,`nt_type`,`nt_related_id`), 33 | KEY `nt_mid` (`nt_mid`), 34 | KEY `nt_from_uid` (`nt_from_uid`) 35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_notify_field.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_notify_field` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_notify_field`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_notify_field` ( 23 | `ntf_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `ntf_hash` tinyint(3) unsigned NOT NULL DEFAULT '0', 25 | `ntf_rid` int(10) unsigned NOT NULL, 26 | `ntf_title` varchar(255) CHARACTER SET utf8mb4 NOT NULL, 27 | PRIMARY KEY (`ntf_id`), 28 | KEY `ntf_rid` (`ntf_rid`), 29 | KEY `ntf_hash` (`ntf_hash`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_access_tokens.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_access_tokens` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_access_tokens`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_access_tokens` ( 23 | `id` mediumint(8) NOT NULL AUTO_INCREMENT, 24 | `type` tinyint(1) unsigned NOT NULL DEFAULT '0', 25 | `access_token` varchar(40) COLLATE utf8_unicode_ci NOT NULL, 26 | `client_id` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 27 | `user_id` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 28 | `expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 29 | `scope` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL, 30 | `info` varchar(255) CHARACTER SET utf8mb4 NOT NULL, 31 | PRIMARY KEY (`id`), 32 | UNIQUE KEY `access_token` (`access_token`) USING BTREE, 33 | KEY `type` (`type`), 34 | KEY `user_expires` (`user_id`,`expires`) 35 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_authorization_codes.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_authorization_codes` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_authorization_codes`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_authorization_codes` ( 23 | `authorization_code` varchar(40) COLLATE utf8_unicode_ci NOT NULL, 24 | `client_id` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 25 | `user_id` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 26 | `redirect_uri` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL, 27 | `expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 28 | `scope` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL, 29 | `id_token` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL, 30 | PRIMARY KEY (`authorization_code`) 31 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_clients.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_clients` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_clients`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_clients` ( 23 | `app_id` mediumint(8) NOT NULL, 24 | `client_id` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 25 | `client_secret` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 26 | `redirect_uri` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL, 27 | `grant_types` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 28 | `scope` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL, 29 | `user_id` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 30 | PRIMARY KEY (`app_id`), 31 | KEY `client_id` (`client_id`) 32 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_jwt.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_jwt` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_jwt`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_jwt` ( 23 | `client_id` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 24 | `subject` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 25 | `public_key` varchar(2000) COLLATE utf8_unicode_ci NOT NULL 26 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 27 | /*!40101 SET character_set_client = @saved_cs_client */; 28 | 29 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 30 | 31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 32 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 33 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 34 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 35 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 36 | 37 | -- Dump completed 38 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_refresh_tokens.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_refresh_tokens` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_refresh_tokens`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_refresh_tokens` ( 23 | `refresh_token` varchar(40) COLLATE utf8_unicode_ci NOT NULL, 24 | `client_id` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 25 | `user_id` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL, 26 | `expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 27 | `scope` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL, 28 | PRIMARY KEY (`refresh_token`) 29 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_oauth_scopes.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_oauth_scopes` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_oauth_scopes`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_oauth_scopes` ( 23 | `scope` varchar(80) COLLATE utf8_unicode_ci NOT NULL, 24 | `is_default` tinyint(1) DEFAULT NULL, 25 | PRIMARY KEY (`scope`) 26 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 27 | /*!40101 SET character_set_client = @saved_cs_client */; 28 | 29 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 30 | 31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 32 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 33 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 34 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 35 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 36 | 37 | -- Dump completed 38 | -------------------------------------------------------------------------------- /sql/schema/chii_onlinetime.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_onlinetime` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_onlinetime`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_onlinetime` ( 23 | `uid` mediumint(8) unsigned NOT NULL DEFAULT '0', 24 | `thismonth` smallint(6) unsigned NOT NULL DEFAULT '0', 25 | `total` mediumint(8) unsigned NOT NULL DEFAULT '0', 26 | `lastupdate` int(10) unsigned NOT NULL DEFAULT '0', 27 | PRIMARY KEY (`uid`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_os_web_sessions.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_os_web_sessions` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_os_web_sessions`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_os_web_sessions` ( 23 | `key` char(64) NOT NULL COMMENT 'session key', 24 | `user_id` int(10) unsigned NOT NULL COMMENT 'uint32 user id', 25 | `value` mediumblob NOT NULL COMMENT 'json encoded session data', 26 | `created_at` bigint(20) NOT NULL COMMENT 'int64 unix timestamp, when session is created', 27 | `expired_at` bigint(20) NOT NULL COMMENT 'int64 unix timestamp, when session is expired', 28 | PRIMARY KEY (`key`) 29 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_person_alias.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_person_alias` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_person_alias`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_person_alias` ( 23 | `prsn_cat` enum('prsn','crt') COLLATE utf8_unicode_ci NOT NULL, 24 | `prsn_id` mediumint(9) unsigned NOT NULL, 25 | `alias_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, 26 | `alias_type` tinyint(4) unsigned NOT NULL, 27 | `alias_key` varchar(10) COLLATE utf8_unicode_ci NOT NULL, 28 | KEY `prsn_cat` (`prsn_cat`,`prsn_id`), 29 | KEY `prsn_id` (`prsn_id`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_person_collects.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_person_collects` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_person_collects`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_person_collects` ( 23 | `prsn_clt_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `prsn_clt_cat` enum('prsn','crt') NOT NULL, 25 | `prsn_clt_mid` mediumint(8) unsigned NOT NULL, 26 | `prsn_clt_uid` mediumint(8) unsigned NOT NULL, 27 | `prsn_clt_dateline` int(10) unsigned NOT NULL, 28 | PRIMARY KEY (`prsn_clt_id`), 29 | KEY `prsn_clt_cat` (`prsn_clt_cat`,`prsn_clt_mid`), 30 | KEY `prsn_clt_uid` (`prsn_clt_uid`), 31 | KEY `prsn_clt_mid` (`prsn_clt_mid`) 32 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='人物收藏'; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_person_cs_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_person_cs_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_person_cs_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_person_cs_index` ( 23 | `prsn_type` enum('prsn','crt') COLLATE utf8_unicode_ci NOT NULL, 24 | `prsn_id` mediumint(9) unsigned NOT NULL, 25 | `prsn_position` smallint(5) unsigned NOT NULL COMMENT '监督,原案,脚本,..', 26 | `subject_id` mediumint(9) unsigned NOT NULL, 27 | `subject_type_id` tinyint(4) unsigned NOT NULL, 28 | `summary` mediumtext COLLATE utf8_unicode_ci NOT NULL, 29 | `prsn_appear_eps` mediumtext COLLATE utf8_unicode_ci NOT NULL COMMENT '可选,人物参与的章节', 30 | PRIMARY KEY (`prsn_type`,`prsn_id`,`subject_id`,`prsn_position`), 31 | KEY `subject_id` (`subject_id`), 32 | KEY `prsn_position` (`prsn_position`), 33 | KEY `prsn_id` (`prsn_id`), 34 | KEY `subject_type_id` (`subject_type_id`) 35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='subjects'' credits/creator & staff (c&s)index'; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 39 | 40 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 41 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 42 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 43 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 44 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 45 | 46 | -- Dump completed 47 | -------------------------------------------------------------------------------- /sql/schema/chii_person_fields.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_person_fields` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_person_fields`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_person_fields` ( 23 | `prsn_cat` enum('prsn','crt') COLLATE utf8_unicode_ci NOT NULL, 24 | `prsn_id` int(8) unsigned NOT NULL, 25 | `gender` tinyint(4) unsigned NOT NULL, 26 | `bloodtype` tinyint(4) unsigned NOT NULL, 27 | `birth_year` year(4) NOT NULL, 28 | `birth_mon` tinyint(2) unsigned NOT NULL, 29 | `birth_day` tinyint(2) unsigned NOT NULL, 30 | PRIMARY KEY (`prsn_cat`,`prsn_id`), 31 | KEY `prsn_id` (`prsn_id`), 32 | KEY `gender` (`gender`), 33 | KEY `bloodtype` (`bloodtype`), 34 | KEY `birth_year` (`birth_year`), 35 | KEY `birth_mon` (`birth_mon`), 36 | KEY `birth_day` (`birth_day`) 37 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 38 | /*!40101 SET character_set_client = @saved_cs_client */; 39 | 40 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 41 | 42 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 43 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 44 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 45 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 46 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 47 | 48 | -- Dump completed 49 | -------------------------------------------------------------------------------- /sql/schema/chii_person_relationship.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_person_relationship` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_person_relationship`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_person_relationship` ( 23 | `prsn_type` enum('prsn','crt') COLLATE utf8_unicode_ci NOT NULL, 24 | `prsn_id` mediumint(9) unsigned NOT NULL, 25 | `relat_prsn_type` enum('prsn','crt') COLLATE utf8_unicode_ci NOT NULL, 26 | `relat_prsn_id` mediumint(9) unsigned NOT NULL, 27 | `relat_type` smallint(6) unsigned NOT NULL COMMENT '任职于,从属,聘用,嫁给,', 28 | KEY `prsn_type` (`prsn_type`,`prsn_id`), 29 | KEY `relat_prsn_type` (`relat_prsn_type`,`relat_prsn_id`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 34 | 35 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 36 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 37 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 38 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 39 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 40 | 41 | -- Dump completed 42 | -------------------------------------------------------------------------------- /sql/schema/chii_pms.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_pms` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_pms`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_pms` ( 23 | `msg_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 24 | `msg_sid` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `msg_rid` mediumint(8) unsigned NOT NULL DEFAULT '0', 26 | `msg_folder` enum('inbox','outbox') NOT NULL DEFAULT 'inbox', 27 | `msg_new` tinyint(1) NOT NULL DEFAULT '0', 28 | `msg_title` varchar(75) NOT NULL, 29 | `msg_dateline` int(10) unsigned NOT NULL DEFAULT '0', 30 | `msg_message` text NOT NULL, 31 | `msg_related_main` int(10) unsigned NOT NULL DEFAULT '0', 32 | `msg_related` int(10) unsigned NOT NULL, 33 | `msg_sdeleted` tinyint(1) unsigned NOT NULL DEFAULT '0', 34 | `msg_rdeleted` tinyint(1) unsigned NOT NULL DEFAULT '0', 35 | PRIMARY KEY (`msg_id`), 36 | KEY `msgtoid` (`msg_rid`,`msg_folder`,`msg_dateline`), 37 | KEY `msgfromid` (`msg_sid`,`msg_folder`,`msg_dateline`), 38 | KEY `pm_related` (`msg_related`), 39 | KEY `msg_sdeleted` (`msg_sdeleted`,`msg_rdeleted`) 40 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 41 | /*!40101 SET character_set_client = @saved_cs_client */; 42 | 43 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 44 | 45 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 46 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 47 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 48 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 49 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 50 | 51 | -- Dump completed 52 | -------------------------------------------------------------------------------- /sql/schema/chii_prsn_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_prsn_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_prsn_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_prsn_comments` ( 23 | `prsn_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `prsn_pst_mid` mediumint(8) unsigned NOT NULL COMMENT '关联人物ID', 25 | `prsn_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `prsn_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `prsn_pst_dateline` int(10) unsigned NOT NULL, 28 | `prsn_pst_content` mediumtext NOT NULL, 29 | `prsn_pst_state` tinyint(1) unsigned NOT NULL, 30 | PRIMARY KEY (`prsn_pst_id`), 31 | KEY `cmt_prsn_id` (`prsn_pst_mid`), 32 | KEY `prsn_pst_related` (`prsn_pst_related`), 33 | KEY `prsn_pst_uid` (`prsn_pst_uid`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_regips.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_regips` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_regips`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_regips` ( 23 | `ip` char(15) NOT NULL DEFAULT '', 24 | `dateline` int(10) unsigned NOT NULL DEFAULT '0', 25 | `count` smallint(6) NOT NULL DEFAULT '0', 26 | KEY `ip` (`ip`) 27 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 28 | /*!40101 SET character_set_client = @saved_cs_client */; 29 | 30 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 31 | 32 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 33 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 34 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 35 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 36 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 37 | 38 | -- Dump completed 39 | -------------------------------------------------------------------------------- /sql/schema/chii_resources.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_resources` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_resources`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_resources` ( 23 | `res_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `res_eid` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `res_type` tinyint(3) unsigned NOT NULL DEFAULT '0', 26 | `res_tool` tinyint(2) unsigned NOT NULL DEFAULT '0', 27 | `res_url` mediumtext NOT NULL, 28 | `res_ext` varchar(5) NOT NULL, 29 | `res_audio_lang` tinyint(3) unsigned NOT NULL DEFAULT '0', 30 | `res_sub_lang` tinyint(3) unsigned NOT NULL DEFAULT '0', 31 | `res_quality` tinyint(1) unsigned NOT NULL DEFAULT '0', 32 | `res_source` mediumtext NOT NULL, 33 | `res_version` tinyint(1) unsigned NOT NULL, 34 | `res_creator` mediumint(8) unsigned NOT NULL DEFAULT '0', 35 | `res_dateline` int(10) unsigned NOT NULL, 36 | PRIMARY KEY (`res_id`), 37 | KEY `res_eid` (`res_eid`,`res_type`), 38 | KEY `res_tool` (`res_tool`) 39 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 40 | /*!40101 SET character_set_client = @saved_cs_client */; 41 | 42 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 43 | 44 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 45 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 46 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 47 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 48 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 49 | 50 | -- Dump completed 51 | -------------------------------------------------------------------------------- /sql/schema/chii_rev_history.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_rev_history` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_rev_history`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_rev_history` ( 23 | `rev_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rev_type` tinyint(3) unsigned NOT NULL COMMENT '条目,角色,人物', 25 | `rev_mid` mediumint(8) unsigned NOT NULL COMMENT '对应条目,人物的ID', 26 | `rev_text_id` mediumint(9) unsigned NOT NULL, 27 | `rev_dateline` int(10) unsigned NOT NULL, 28 | `rev_creator` mediumint(8) unsigned NOT NULL, 29 | `rev_edit_summary` varchar(200) COLLATE utf8_unicode_ci NOT NULL, 30 | PRIMARY KEY (`rev_id`), 31 | KEY `rev_crt_id` (`rev_type`,`rev_mid`), 32 | KEY `rev_crt_creator` (`rev_creator`), 33 | KEY `rev_id` (`rev_id`,`rev_type`,`rev_creator`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_rev_text.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_rev_text` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_rev_text`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_rev_text` ( 23 | `rev_text_id` mediumint(9) unsigned NOT NULL AUTO_INCREMENT, 24 | `rev_text` mediumblob NOT NULL, 25 | PRIMARY KEY (`rev_text_id`) 26 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 27 | /*!40101 SET character_set_client = @saved_cs_client */; 28 | 29 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 30 | 31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 32 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 33 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 34 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 35 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 36 | 37 | -- Dump completed 38 | -------------------------------------------------------------------------------- /sql/schema/chii_robot_personality.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_robot_personality` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_robot_personality`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_robot_personality` ( 23 | `rbt_psn_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rbt_psn_name` varchar(255) NOT NULL COMMENT '人格名', 25 | `rbt_psn_creator` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '创建者', 26 | `rbt_psn_desc` mediumtext NOT NULL COMMENT '简介', 27 | `rbt_psn_speech` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '句库总数', 28 | `rbt_psn_ban` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否屏蔽 0=不屏蔽,1=屏蔽', 29 | `rbt_psn_lasttouch` int(10) unsigned NOT NULL COMMENT '最后修改', 30 | `rbt_psn_dateline` int(10) unsigned NOT NULL COMMENT '创建时间', 31 | PRIMARY KEY (`rbt_psn_id`), 32 | KEY `rbt_psn_ban` (`rbt_psn_ban`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='伪春菜人格'; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_robot_speech.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_robot_speech` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_robot_speech`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_robot_speech` ( 23 | `rbt_spc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rbt_spc_mid` mediumint(8) unsigned NOT NULL, 25 | `rbt_spc_uid` mediumint(8) unsigned NOT NULL, 26 | `rbt_spc_speech` varchar(255) NOT NULL, 27 | `rbt_spc_ban` tinyint(3) unsigned NOT NULL DEFAULT '0', 28 | `rbt_spc_dateline` int(10) unsigned NOT NULL, 29 | PRIMARY KEY (`rbt_spc_id`), 30 | KEY `rbt_spc_mid` (`rbt_spc_mid`), 31 | KEY `rbt_spc_ban` (`rbt_spc_ban`) 32 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='伪春菜句库'; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 36 | 37 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 38 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 39 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 40 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 41 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 42 | 43 | -- Dump completed 44 | -------------------------------------------------------------------------------- /sql/schema/chii_searchindex.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_searchindex` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_searchindex`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_searchindex` ( 23 | `keywords` varchar(255) NOT NULL DEFAULT '', 24 | `searchstring` varchar(255) NOT NULL DEFAULT '', 25 | `dateline` int(10) unsigned NOT NULL DEFAULT '0', 26 | `expiration` int(10) unsigned NOT NULL DEFAULT '0', 27 | `threads` smallint(6) unsigned NOT NULL DEFAULT '0', 28 | `tids` text NOT NULL, 29 | `type` varchar(255) NOT NULL, 30 | KEY `searchstring` (`searchstring`) 31 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 32 | /*!40101 SET character_set_client = @saved_cs_client */; 33 | 34 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 35 | 36 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 37 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 38 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 39 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 40 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 41 | 42 | -- Dump completed 43 | -------------------------------------------------------------------------------- /sql/schema/chii_settings.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_settings` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_settings`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_settings` ( 23 | `variable` varchar(32) NOT NULL DEFAULT '', 24 | `value` text NOT NULL, 25 | PRIMARY KEY (`variable`) 26 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 27 | /*!40101 SET character_set_client = @saved_cs_client */; 28 | 29 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 30 | 31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 32 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 33 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 34 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 35 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 36 | 37 | -- Dump completed 38 | -------------------------------------------------------------------------------- /sql/schema/chii_stats.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_stats` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_stats`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_stats` ( 23 | `unit` mediumint(8) unsigned NOT NULL, 24 | `category` mediumint(8) unsigned NOT NULL, 25 | `type` mediumint(8) unsigned NOT NULL, 26 | `sub_type` mediumint(8) unsigned NOT NULL, 27 | `related_id` mediumint(8) unsigned NOT NULL, 28 | `value` int(11) NOT NULL, 29 | `timestamp` int(10) unsigned NOT NULL, 30 | `updated_at` int(10) unsigned NOT NULL, 31 | UNIQUE KEY `unit` (`unit`,`related_id`), 32 | KEY `category` (`category`,`type`,`sub_type`) 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_alias.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_alias` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_alias`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_alias` ( 23 | `subject_id` int(10) unsigned NOT NULL, 24 | `alias_name` varchar(255) NOT NULL, 25 | `subject_type_id` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '所属条目的类型', 26 | `alias_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是别名还是条目名', 27 | `alias_key` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, 28 | KEY `subject_id` (`subject_id`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_imgs.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_imgs` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_imgs`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_imgs` ( 23 | `img_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `img_subject_id` mediumint(8) unsigned NOT NULL, 25 | `img_uid` mediumint(8) unsigned NOT NULL, 26 | `img_target` varchar(255) NOT NULL, 27 | `img_vote` mediumint(8) unsigned NOT NULL, 28 | `img_nsfw` tinyint(1) unsigned NOT NULL, 29 | `img_ban` tinyint(1) unsigned NOT NULL, 30 | `img_dateline` int(10) unsigned NOT NULL, 31 | PRIMARY KEY (`img_id`), 32 | KEY `img_subject_id` (`img_subject_id`), 33 | KEY `img_nsfw` (`img_nsfw`,`img_ban`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_posts.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_posts` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_posts`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_posts` ( 23 | `sbj_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `sbj_pst_mid` mediumint(8) unsigned NOT NULL, 25 | `sbj_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `sbj_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `sbj_pst_content` mediumtext CHARACTER SET utf8mb4 NOT NULL, 28 | `sbj_pst_state` tinyint(1) unsigned NOT NULL, 29 | `sbj_pst_dateline` int(10) unsigned NOT NULL DEFAULT '0', 30 | PRIMARY KEY (`sbj_pst_id`), 31 | KEY `pss_topic_id` (`sbj_pst_mid`), 32 | KEY `sbj_pst_related` (`sbj_pst_related`), 33 | KEY `sbj_pst_uid` (`sbj_pst_uid`) 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_rec.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_rec` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_rec`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_rec` ( 23 | `subject_id` mediumint(8) unsigned NOT NULL, 24 | `rec_subject_id` mediumint(8) unsigned NOT NULL, 25 | `mio_sim` float NOT NULL, 26 | `mio_count` mediumint(9) NOT NULL, 27 | KEY `subject_id` (`subject_id`), 28 | KEY `mio_count` (`mio_count`) 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_rec_2.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_rec_2` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_rec_2`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_rec_2` ( 23 | `subject_id` mediumint(9) NOT NULL, 24 | `rec_subject_id` mediumint(9) NOT NULL, 25 | `mio_sim` float NOT NULL, 26 | `mio_count` mediumint(9) NOT NULL, 27 | KEY `subject1_id` (`subject_id`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_related_blog.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_related_blog` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_related_blog`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_related_blog` ( 23 | `srb_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `srb_uid` mediumint(8) unsigned NOT NULL, 25 | `srb_subject_id` mediumint(8) unsigned NOT NULL COMMENT '条目ID', 26 | `srb_entry_id` mediumint(8) unsigned NOT NULL COMMENT '日志ID', 27 | `srb_spoiler` mediumint(8) unsigned NOT NULL COMMENT '剧透', 28 | `srb_like` mediumint(8) unsigned NOT NULL, 29 | `srb_dislike` mediumint(8) unsigned NOT NULL, 30 | `srb_dateline` int(10) unsigned NOT NULL, 31 | PRIMARY KEY (`srb_id`), 32 | KEY `srb_uid` (`srb_uid`,`srb_subject_id`,`srb_entry_id`), 33 | KEY `subject_related` (`srb_subject_id`) USING BTREE 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='条目关联日志'; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_relations.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_relations` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_relations`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_relations` ( 23 | `rlt_subject_id` mediumint(8) unsigned NOT NULL COMMENT '关联主 ID', 24 | `rlt_subject_type_id` tinyint(3) unsigned NOT NULL, 25 | `rlt_relation_type` smallint(5) unsigned NOT NULL COMMENT '关联类型', 26 | `rlt_related_subject_id` mediumint(8) unsigned NOT NULL COMMENT '关联目标 ID', 27 | `rlt_related_subject_type_id` tinyint(3) unsigned NOT NULL COMMENT '关联目标类型', 28 | `rlt_vice_versa` tinyint(1) unsigned NOT NULL, 29 | `rlt_order` smallint(6) unsigned NOT NULL COMMENT '关联排序', 30 | UNIQUE KEY `rlt_subject_id` (`rlt_subject_id`,`rlt_related_subject_id`,`rlt_vice_versa`), 31 | KEY `rlt_related_subject_type_id` (`rlt_related_subject_type_id`,`rlt_order`), 32 | KEY `rlt_subject_type_id` (`rlt_subject_type_id`), 33 | KEY `rlt_relation_type` (`rlt_relation_type`,`rlt_subject_id`,`rlt_related_subject_id`) USING BTREE 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='条目关联表'; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_relations_bak_240803.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_relations_bak_240803` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_relations_bak_240803`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_relations_bak_240803` ( 23 | `rlt_subject_id` mediumint(8) unsigned NOT NULL COMMENT '关联主 ID', 24 | `rlt_subject_type_id` tinyint(3) unsigned NOT NULL, 25 | `rlt_relation_type` smallint(5) unsigned NOT NULL COMMENT '关联类型', 26 | `rlt_related_subject_id` mediumint(8) unsigned NOT NULL COMMENT '关联目标 ID', 27 | `rlt_related_subject_type_id` tinyint(3) unsigned NOT NULL COMMENT '关联目标类型', 28 | `rlt_vice_versa` tinyint(1) unsigned NOT NULL, 29 | `rlt_order` tinyint(3) unsigned NOT NULL COMMENT '关联排序', 30 | UNIQUE KEY `rlt_subject_id` (`rlt_subject_id`,`rlt_related_subject_id`,`rlt_vice_versa`), 31 | KEY `rlt_related_subject_type_id` (`rlt_related_subject_type_id`,`rlt_order`), 32 | KEY `rlt_subject_type_id` (`rlt_subject_type_id`), 33 | KEY `rlt_relation_type` (`rlt_relation_type`,`rlt_subject_id`,`rlt_related_subject_id`) USING BTREE 34 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='条目关联表'; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_revisions.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_revisions` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_revisions`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_revisions` ( 23 | `rev_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `rev_type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '修订类型', 25 | `rev_subject_id` mediumint(8) unsigned NOT NULL, 26 | `rev_type_id` smallint(6) unsigned NOT NULL DEFAULT '0', 27 | `rev_creator` mediumint(8) unsigned NOT NULL, 28 | `rev_dateline` int(10) unsigned NOT NULL DEFAULT '0', 29 | `rev_name` varchar(80) NOT NULL, 30 | `rev_name_cn` varchar(80) NOT NULL, 31 | `rev_field_infobox` mediumtext NOT NULL, 32 | `rev_field_meta_tags` mediumtext CHARACTER SET utf8mb4 NOT NULL, 33 | `rev_field_summary` mediumtext NOT NULL, 34 | `rev_vote_field` mediumtext NOT NULL, 35 | `rev_field_eps` mediumint(8) unsigned NOT NULL, 36 | `rev_edit_summary` varchar(200) NOT NULL, 37 | `rev_platform` smallint(6) unsigned NOT NULL, 38 | PRIMARY KEY (`rev_id`), 39 | KEY `rev_subject_id` (`rev_subject_id`,`rev_creator`), 40 | KEY `rev_type` (`rev_type`), 41 | KEY `rev_dateline` (`rev_dateline`), 42 | KEY `rev_creator` (`rev_creator`,`rev_id`) USING BTREE 43 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 44 | /*!40101 SET character_set_client = @saved_cs_client */; 45 | 46 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 47 | 48 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 49 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 50 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 51 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 52 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 53 | 54 | -- Dump completed 55 | -------------------------------------------------------------------------------- /sql/schema/chii_subject_topics.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_subject_topics` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_subject_topics`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_subject_topics` ( 23 | `sbj_tpc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `sbj_tpc_subject_id` mediumint(8) unsigned NOT NULL, 25 | `sbj_tpc_uid` mediumint(8) unsigned NOT NULL, 26 | `sbj_tpc_title` varchar(80) CHARACTER SET utf8mb4 NOT NULL, 27 | `sbj_tpc_dateline` int(10) unsigned NOT NULL DEFAULT '0', 28 | `sbj_tpc_lastpost` int(10) unsigned NOT NULL DEFAULT '0', 29 | `sbj_tpc_replies` mediumint(8) unsigned NOT NULL DEFAULT '0', 30 | `sbj_tpc_state` tinyint(1) unsigned NOT NULL, 31 | `sbj_tpc_display` tinyint(1) unsigned NOT NULL DEFAULT '1', 32 | PRIMARY KEY (`sbj_tpc_id`), 33 | KEY `tpc_subject_id` (`sbj_tpc_subject_id`), 34 | KEY `tpc_display` (`sbj_tpc_display`), 35 | KEY `sbj_tpc_uid` (`sbj_tpc_uid`), 36 | KEY `sbj_tpc_lastpost` (`sbj_tpc_lastpost`,`sbj_tpc_subject_id`,`sbj_tpc_display`) USING BTREE 37 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 38 | /*!40101 SET character_set_client = @saved_cs_client */; 39 | 40 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 41 | 42 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 43 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 44 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 45 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 46 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 47 | 48 | -- Dump completed 49 | -------------------------------------------------------------------------------- /sql/schema/chii_tag_neue_fields.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_tag_neue_fields` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_tag_neue_fields`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_tag_neue_fields` ( 23 | `field_tid` int(10) unsigned NOT NULL, 24 | `field_summary` mediumtext NOT NULL, 25 | `field_order` mediumint(9) NOT NULL DEFAULT '0', 26 | `field_nsfw` tinyint(3) unsigned NOT NULL DEFAULT '0', 27 | `field_lock` int(10) unsigned NOT NULL DEFAULT '0', 28 | PRIMARY KEY (`field_tid`) 29 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 33 | 34 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 35 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 36 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 37 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 38 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 39 | 40 | -- Dump completed 41 | -------------------------------------------------------------------------------- /sql/schema/chii_tag_neue_index.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_tag_neue_index` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_tag_neue_index`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_tag_neue_index` ( 23 | `tag_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `tag_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, 25 | `tag_cat` tinyint(3) NOT NULL COMMENT '0=条目 1=日志 2=天窗', 26 | `tag_type` tinyint(3) NOT NULL, 27 | `tag_results` mediumint(8) unsigned NOT NULL, 28 | `tag_dateline` int(10) unsigned NOT NULL, 29 | `tag_lasttouch` int(10) unsigned NOT NULL, 30 | PRIMARY KEY (`tag_id`), 31 | KEY `tag_cat` (`tag_cat`,`tag_type`), 32 | KEY `tag_results` (`tag_cat`,`tag_type`,`tag_results`), 33 | KEY `tag_query` (`tag_name`,`tag_cat`,`tag_type`) 34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 38 | 39 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 40 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 41 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 42 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 43 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 44 | 45 | -- Dump completed 46 | -------------------------------------------------------------------------------- /sql/schema/chii_tag_neue_list.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_tag_neue_list` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_tag_neue_list`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_tag_neue_list` ( 23 | `tlt_tid` mediumint(8) unsigned NOT NULL, 24 | `tlt_uid` mediumint(8) unsigned NOT NULL, 25 | `tlt_cat` tinyint(3) unsigned NOT NULL, 26 | `tlt_type` tinyint(3) unsigned NOT NULL, 27 | `tlt_mid` mediumint(8) unsigned NOT NULL, 28 | `tlt_dateline` int(10) unsigned NOT NULL, 29 | KEY `tlt_tid` (`tlt_tid`,`tlt_uid`,`tlt_cat`,`tlt_type`,`tlt_mid`), 30 | KEY `user_tags` (`tlt_uid`,`tlt_cat`,`tlt_mid`,`tlt_tid`), 31 | KEY `subject_tags` (`tlt_cat`,`tlt_mid`,`tlt_tid`), 32 | KEY `tag_to_subject` (`tlt_tid`,`tlt_mid`) 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_timeline.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_timeline` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_timeline`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_timeline` ( 23 | `tml_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 24 | `tml_uid` mediumint(8) unsigned NOT NULL DEFAULT '0', 25 | `tml_cat` smallint(6) unsigned NOT NULL, 26 | `tml_type` smallint(6) unsigned NOT NULL DEFAULT '0', 27 | `tml_related` char(255) NOT NULL DEFAULT '0', 28 | `tml_memo` mediumtext NOT NULL, 29 | `tml_img` mediumtext NOT NULL, 30 | `tml_batch` tinyint(3) unsigned NOT NULL, 31 | `tml_source` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '更新来源', 32 | `tml_replies` mediumint(8) unsigned NOT NULL COMMENT '回复数', 33 | `tml_dateline` int(10) unsigned NOT NULL DEFAULT '0', 34 | PRIMARY KEY (`tml_id`), 35 | KEY `tml_uid` (`tml_uid`), 36 | KEY `tml_cat` (`tml_cat`), 37 | KEY `tml_batch` (`tml_batch`), 38 | KEY `query_tml_cat` (`tml_uid`,`tml_cat`), 39 | KEY `tml_cat_date` (`tml_uid`,`tml_cat`,`tml_dateline`) 40 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 41 | /*!40101 SET character_set_client = @saved_cs_client */; 42 | 43 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 44 | 45 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 46 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 47 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 48 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 49 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 50 | 51 | -- Dump completed 52 | -------------------------------------------------------------------------------- /sql/schema/chii_timeline_comments.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_timeline_comments` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_timeline_comments`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_timeline_comments` ( 23 | `tml_pst_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `tml_pst_mid` int(10) unsigned NOT NULL COMMENT '关联人物ID', 25 | `tml_pst_uid` mediumint(8) unsigned NOT NULL, 26 | `tml_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0', 27 | `tml_pst_dateline` int(10) unsigned NOT NULL, 28 | `tml_pst_content` mediumtext NOT NULL, 29 | PRIMARY KEY (`tml_pst_id`), 30 | KEY `cmt_tml_id` (`tml_pst_mid`), 31 | KEY `tml_pst_related` (`tml_pst_related`), 32 | KEY `tml_pst_uid` (`tml_pst_uid`) 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 37 | 38 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 43 | 44 | -- Dump completed 45 | -------------------------------------------------------------------------------- /sql/schema/chii_tokei_paint.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_tokei_paint` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_tokei_paint`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_tokei_paint` ( 23 | `tp_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `tp_uid` mediumint(8) unsigned NOT NULL, 25 | `tp_hour` tinyint(2) unsigned NOT NULL, 26 | `tp_min` tinyint(2) unsigned NOT NULL, 27 | `tp_url` varchar(255) NOT NULL, 28 | `tp_desc` mediumtext NOT NULL, 29 | `tp_book` tinyint(1) unsigned NOT NULL DEFAULT '0', 30 | `tp_views` mediumint(8) unsigned NOT NULL DEFAULT '0', 31 | `tp_related_tpc` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '关联小组话题', 32 | `tp_lastupdate` int(10) unsigned NOT NULL COMMENT '最近更新时间', 33 | `tp_dateline` int(10) NOT NULL, 34 | PRIMARY KEY (`tp_id`), 35 | KEY `tp_uid` (`tp_uid`,`tp_hour`), 36 | KEY `tp_related_tpc` (`tp_related_tpc`) 37 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Tokei Paints'; 38 | /*!40101 SET character_set_client = @saved_cs_client */; 39 | 40 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 41 | 42 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 43 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 44 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 45 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 46 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 47 | 48 | -- Dump completed 49 | -------------------------------------------------------------------------------- /sql/schema/chii_usergroup.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64) 2 | -- 3 | -- ------------------------------------------------------ 4 | -- Server version 5.7.33-0ubuntu0.16.04.1-log 5 | 6 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 7 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 8 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 9 | /*!50503 SET NAMES utf8 */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; 13 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 14 | 15 | -- 16 | -- Table structure for table `chii_usergroup` 17 | -- 18 | 19 | DROP TABLE IF EXISTS `chii_usergroup`; 20 | /*!40101 SET @saved_cs_client = @@character_set_client */; 21 | /*!50503 SET character_set_client = utf8mb4 */; 22 | CREATE TABLE `chii_usergroup` ( 23 | `usr_grp_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, 24 | `usr_grp_name` varchar(255) CHARACTER SET utf8 NOT NULL, 25 | `usr_grp_perm` mediumtext CHARACTER SET utf8 NOT NULL, 26 | `usr_grp_dateline` int(10) unsigned NOT NULL, 27 | PRIMARY KEY (`usr_grp_id`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 29 | /*!40101 SET character_set_client = @saved_cs_client */; 30 | 31 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 32 | 33 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 34 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 35 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 36 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 37 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 38 | 39 | -- Dump completed 40 | -------------------------------------------------------------------------------- /sql/sql_mode.sql: -------------------------------------------------------------------------------- 1 | SET 2 | SQL_MODE = ""; 3 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | .idea/ 3 | .venv/ 4 | /data/ 5 | public/ 6 | /node_modules/ 7 | /mq/.env 8 | micro-services/data/ 9 | 10 | .env 11 | /infra/data/ 12 | -------------------------------------------------------------------------------- /src/config/mysql-master.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | server-id = 1 3 | binlog-format = row 4 | expire_logs_days = 10 5 | max_binlog_size = 100M 6 | log_bin = /var/lib/mysql/binlog 7 | -------------------------------------------------------------------------------- /src/scripts/reload.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | docker compose -f infra/docker-compose.yaml down || true 4 | docker compose down 5 | sudo rm -rf infra/data 6 | sudo rm -rf data 7 | docker compose up -d 8 | -------------------------------------------------------------------------------- /test-each-file.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | import pymysql 4 | import yaml 5 | from pymysql.constants import CLIENT 6 | 7 | 8 | def main(): 9 | with open("./docker-compose.yaml", encoding="utf8") as f: 10 | compose = yaml.safe_load(f.read()) 11 | 12 | with open("./sql_script_load_order.txt") as f: 13 | sql_scripts = f.readlines() 14 | sql_scripts = [line.rstrip() for line in sql_scripts if line.rstrip()] 15 | 16 | container_config = compose["services"]["mysql"]["environment"] 17 | 18 | conn = pymysql.connect( 19 | host=os.environ.get("CHII_HOST", "127.0.0.1"), 20 | database=container_config["MYSQL_DATABASE"], 21 | user=container_config["MYSQL_USER"], 22 | password=container_config["MYSQL_PASSWORD"], 23 | client_flag=CLIENT.MULTI_STATEMENTS, 24 | autocommit=True, 25 | ) 26 | 27 | for script in sql_scripts: 28 | with open(script, encoding="utf8") as f: 29 | sql = f.read() 30 | print(f"executing {script}") 31 | with conn.cursor() as cursor: 32 | cursor.execute(sql) 33 | conn.close() 34 | 35 | 36 | if __name__ == "__main__": 37 | main() 38 | -------------------------------------------------------------------------------- /wait_mysql_ready.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | timeout 30s grep -q 'MySQL init process done. Ready for start up.' <(docker compose -f "$(dirname "$0")/docker-compose.yaml" logs -f) 4 | timeout 30s grep -q 'ready for connections' <(docker compose -f "$(dirname "$0")/docker-compose.yaml" logs -f) 5 | 6 | RESULT=$? 7 | if [ $RESULT -eq 0 ]; then 8 | exit 0 9 | else 10 | docker compose -f "$(dirname "$0")/docker-compose.yaml" logs 11 | exit 1 12 | fi 13 | --------------------------------------------------------------------------------