├── .github
├── pull_request_template.md
└── dependabot.yml
├── README.md
├── LICENSE
└── db
└── 01_schema-legacy.sql
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 |
10 |
11 | ## Description
12 |
13 |
14 |
15 | ## What type of PR is this? (check all applicable)
16 | - [ ] 🍕 Feature
17 | - [ ] 🐛 Bug Fix
18 | - [ ] 📝 Documentation Update
19 | - [ ] 🎨 Style
20 | - [ ] 🧑💻 Code Refactor
21 | - [ ] 🤖 Build
22 | - [ ] 🔁 CI
23 | - [ ] 📦 Chore
24 | - [ ] ⏩ Revert
25 |
26 |
27 | ## Related Issues and Pull Requests
28 | **Fixes:** #(issue/ pr number)
29 | **Closes:** #(issue/ pr number)
30 | **Depends on:** #(issue/ pr number)
31 |
32 |
33 | ## Mobile & Desktop Screenshots/Recordings (if applicable)
34 |
35 | ### Mobile
36 |
37 | ### Desktop
38 |
39 | ## [optional] Design Documents or Screenshots
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5 |
6 | version: 2
7 | updates:
8 | # ===== NPM =====
9 | - package-ecosystem: "npm"
10 | directory: "/"
11 | target-branch: "development"
12 | schedule:
13 | interval: "weekly"
14 |
15 | - package-ecosystem: "npm"
16 | directory: "/cms"
17 | target-branch: "development"
18 | schedule:
19 | interval: "weekly"
20 | groups:
21 | non-major-deps:
22 | applies-to: version-updates
23 | update-types:
24 | - "minor"
25 | - "patch"
26 |
27 | - package-ecosystem: "npm"
28 | directory: "/web"
29 | target-branch: "development"
30 | schedule:
31 | interval: "weekly"
32 | groups:
33 | non-major-deps:
34 | applies-to: version-updates
35 | update-types:
36 | - "minor"
37 | - "patch"
38 |
39 | # ===== DOCKER =====
40 | - package-ecosystem: "docker"
41 | directory: "/cms"
42 | target-branch: "development"
43 | schedule:
44 | interval: "weekly"
45 |
46 | - package-ecosystem: "docker"
47 | directory: "/web"
48 | target-branch: "development"
49 | schedule:
50 | interval: "weekly"
51 |
52 | # ===== GITHUB ACTIONS =====
53 | - package-ecosystem: "github-actions"
54 | directory: "/"
55 | target-branch: "development"
56 | schedule:
57 | interval: "weekly"
58 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Overview
3 |
4 | This is the relaunch of the new www.vim.org website. We have found a small team that will take on the
5 | beautiful task of rebuilding the website with current design and new concepts.
6 |
7 | The new development should not take place behind closed doors, we want to
8 | make the new development public and transparent for you.
9 |
10 | Soon there will be a test system where you can follow the current status successively.
11 |
12 | Of course, we will involve you, the community, in the design by collecting ideas and feedback.
13 |
14 |
15 | # Requirements
16 |
17 | Add your requirements here:
18 |
19 | ## Functional Requirements
20 |
21 | * The website should continue important components
22 | * User Accounts
23 | * Vim Scripts community space (Filing, Versioning, Search, ...)
24 | * Blog, Announcements
25 | * Existing contents should be migrated
26 |
27 | ## Non-Functional Requirements
28 |
29 | * We want to continue using MySQL 8 as the database system.
30 | * We want the website to be fundamentally secure and avoid typical web application vulnerabilities (like SQL injection, XSS, ...) by design.
31 | * The hashing of the user passwords is to be migrated to a hashing procedure that corresponds to the state of the art.
32 | * The frontend/backend stack shall:
33 | - should be maintainable and expandable in the future with reasonable effort
34 | - be opensource based
35 | - the components used should be vital
36 | - shall be efficient with server resources
37 |
38 |
39 | # Idea collection
40 |
41 | This is a unfinished and unstructed list of ideas:
42 |
43 | - Tutorial section
44 | - Vim tips revival
45 | - The vim tricks
46 | - My personal ".vimrc", with annotations about motivations
47 | - Blog posts and annountements for the maintainers and artive editors
48 | - Link resource section
49 | - "How to contribute" section
50 | - Vim distributions for the various platforms
51 |
52 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | VIM LICENSE
2 |
3 | I) There are no restrictions on distributing unmodified copies of Vim except
4 | that they must include this license text. You can also distribute
5 | unmodified parts of Vim, likewise unrestricted except that they must
6 | include this license text. You are also allowed to include executables
7 | that you made from the unmodified Vim sources, plus your own usage
8 | examples and Vim scripts.
9 |
10 | II) It is allowed to distribute a modified (or extended) version of Vim,
11 | including executables and/or source code, when the following four
12 | conditions are met:
13 | 1) This license text must be included unmodified.
14 | 2) The modified Vim must be distributed in one of the following five ways:
15 | a) If you make changes to Vim yourself, you must clearly describe in
16 | the distribution how to contact you. When the maintainer asks you
17 | (in any way) for a copy of the modified Vim you distributed, you
18 | must make your changes, including source code, available to the
19 | maintainer without fee. The maintainer reserves the right to
20 | include your changes in the official version of Vim. What the
21 | maintainer will do with your changes and under what license they
22 | will be distributed is negotiable. If there has been no negotiation
23 | then this license, or a later version, also applies to your changes.
24 | The current maintainers are listed here: https://github.com/orgs/vim/people.
25 | If this changes it will be announced in appropriate places (most likely
26 | vim.sf.net, www.vim.org and/or comp.editors). When it is completely
27 | impossible to contact the maintainer, the obligation to send him
28 | your changes ceases. Once the maintainer has confirmed that he has
29 | received your changes they will not have to be sent again.
30 | b) If you have received a modified Vim that was distributed as
31 | mentioned under a) you are allowed to further distribute it
32 | unmodified, as mentioned at I). If you make additional changes the
33 | text under a) applies to those changes.
34 | c) Provide all the changes, including source code, with every copy of
35 | the modified Vim you distribute. This may be done in the form of a
36 | context diff. You can choose what license to use for new code you
37 | add. The changes and their license must not restrict others from
38 | making their own changes to the official version of Vim.
39 | d) When you have a modified Vim which includes changes as mentioned
40 | under c), you can distribute it without the source code for the
41 | changes if the following three conditions are met:
42 | - The license that applies to the changes permits you to distribute
43 | the changes to the Vim maintainer without fee or restriction, and
44 | permits the Vim maintainer to include the changes in the official
45 | version of Vim without fee or restriction.
46 | - You keep the changes for at least three years after last
47 | distributing the corresponding modified Vim. When the maintainer
48 | or someone who you distributed the modified Vim to asks you (in
49 | any way) for the changes within this period, you must make them
50 | available to him.
51 | - You clearly describe in the distribution how to contact you. This
52 | contact information must remain valid for at least three years
53 | after last distributing the corresponding modified Vim, or as long
54 | as possible.
55 | e) When the GNU General Public License (GPL) applies to the changes,
56 | you can distribute the modified Vim under the GNU GPL version 2 or
57 | any later version.
58 | 3) A message must be added, at least in the output of the ":version"
59 | command and in the intro screen, such that the user of the modified Vim
60 | is able to see that it was modified. When distributing as mentioned
61 | under 2)e) adding the message is only required for as far as this does
62 | not conflict with the license used for the changes.
63 | 4) The contact information as required under 2)a) and 2)d) must not be
64 | removed or changed, except that the person himself can make
65 | corrections.
66 |
67 | III) If you distribute a modified version of Vim, you are encouraged to use
68 | the Vim license for your changes and make them available to the
69 | maintainer, including the source code. The preferred way to do this is
70 | by e-mail or by uploading the files to a server and e-mailing the URL.
71 | If the number of changes is small (e.g., a modified Makefile) e-mailing a
72 | context diff will do. The e-mail address to be used is
73 |
74 |
75 | IV) It is not allowed to remove this license from the distribution of the Vim
76 | sources, parts of it or from a modified version. You may use this
77 | license for previous Vim releases instead of the license that they came
78 | with, at your option.
79 |
--------------------------------------------------------------------------------
/db/01_schema-legacy.sql:
--------------------------------------------------------------------------------
1 | -- MySQL dump 10.13 Distrib 8.0.34, for Linux (x86_64)
2 | --
3 | -- Host: localhost Database: vim
4 | -- ------------------------------------------------------
5 | -- Server version 8.0.34-0ubuntu0.22.04.1
6 |
7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 | /*!50503 SET NAMES utf8mb4 */;
11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 | /*!40103 SET TIME_ZONE='+00:00' */;
13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17 |
18 | --
19 | -- Table structure for table `post_requests_by_ip`
20 | --
21 |
22 | DROP TABLE IF EXISTS `post_requests_by_ip`;
23 | /*!40101 SET @saved_cs_client = @@character_set_client */;
24 | /*!50503 SET character_set_client = utf8mb4 */;
25 | CREATE TABLE `post_requests_by_ip` (
26 | `ip` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
27 | `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
28 | KEY `X` (`ip`)
29 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
30 | /*!40101 SET character_set_client = @saved_cs_client */;
31 |
32 | --
33 | -- Table structure for table `vd_donations`
34 | --
35 |
36 | DROP TABLE IF EXISTS `vd_donations`;
37 | /*!40101 SET @saved_cs_client = @@character_set_client */;
38 | /*!50503 SET character_set_client = utf8mb4 */;
39 | CREATE TABLE `vd_donations` (
40 | `mailed_key` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
41 | `amount` int DEFAULT NULL,
42 | `created` date DEFAULT NULL,
43 | `user_id` int DEFAULT NULL,
44 | KEY `user_id` (`user_id`)
45 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
46 | /*!40101 SET character_set_client = @saved_cs_client */;
47 |
48 | --
49 | -- Table structure for table `vd_features`
50 | --
51 |
52 | DROP TABLE IF EXISTS `vd_features`;
53 | /*!40101 SET @saved_cs_client = @@character_set_client */;
54 | /*!50503 SET character_set_client = utf8mb4 */;
55 | CREATE TABLE `vd_features` (
56 | `feature_id` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
57 | `sort_id` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
58 | `description` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL
59 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
60 | /*!40101 SET character_set_client = @saved_cs_client */;
61 |
62 | --
63 | -- Table structure for table `vd_votes`
64 | --
65 |
66 | DROP TABLE IF EXISTS `vd_votes`;
67 | /*!40101 SET @saved_cs_client = @@character_set_client */;
68 | /*!50503 SET character_set_client = utf8mb4 */;
69 | CREATE TABLE `vd_votes` (
70 | `user_id` int DEFAULT NULL,
71 | `vote_nr` int DEFAULT NULL,
72 | `points` int DEFAULT NULL,
73 | `feature_id` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
74 | `expire_date` date DEFAULT NULL,
75 | KEY `user_id` (`user_id`)
76 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
77 | /*!40101 SET character_set_client = @saved_cs_client */;
78 |
79 | --
80 | -- Table structure for table `vo_news_items`
81 | --
82 |
83 | DROP TABLE IF EXISTS `vo_news_items`;
84 | /*!40101 SET @saved_cs_client = @@character_set_client */;
85 | /*!50503 SET character_set_client = utf8mb4 */;
86 | CREATE TABLE `vo_news_items` (
87 | `news_item_id` int NOT NULL AUTO_INCREMENT,
88 | `title` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
89 | `news` longtext COLLATE utf8mb3_unicode_ci,
90 | `created_by` int DEFAULT NULL,
91 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
92 | PRIMARY KEY (`news_item_id`)
93 | ) ENGINE=InnoDB AUTO_INCREMENT=157 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
94 | /*!40101 SET character_set_client = @saved_cs_client */;
95 |
96 | --
97 | -- Table structure for table `vs_script_downloads`
98 | --
99 |
100 | DROP TABLE IF EXISTS `vs_script_downloads`;
101 | /*!40101 SET @saved_cs_client = @@character_set_client */;
102 | /*!50503 SET character_set_client = utf8mb4 */;
103 | CREATE TABLE `vs_script_downloads` (
104 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
105 | `script_id` int DEFAULT NULL,
106 | `ip` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
107 | KEY `vssd_id_ip` (`script_id`,`ip`)
108 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
109 | /*!40101 SET character_set_client = @saved_cs_client */;
110 |
111 | --
112 | -- Table structure for table `vs_script_ratings`
113 | --
114 |
115 | DROP TABLE IF EXISTS `vs_script_ratings`;
116 | /*!40101 SET @saved_cs_client = @@character_set_client */;
117 | /*!50503 SET character_set_client = utf8mb4 */;
118 | CREATE TABLE `vs_script_ratings` (
119 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
120 | `script_id` int DEFAULT NULL,
121 | `rating` int DEFAULT NULL,
122 | `ip` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL
123 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
124 | /*!40101 SET character_set_client = @saved_cs_client */;
125 |
126 | --
127 | -- Table structure for table `vs_script_source`
128 | --
129 |
130 | DROP TABLE IF EXISTS `vs_script_source`;
131 | /*!40101 SET @saved_cs_client = @@character_set_client */;
132 | /*!50503 SET character_set_client = utf8mb4 */;
133 | CREATE TABLE `vs_script_source` (
134 | `script_source_id` int NOT NULL AUTO_INCREMENT,
135 | `mime_type` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
136 | `script_id` int DEFAULT NULL,
137 | `vim_version` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
138 | `script_version` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
139 | `version_comment` longtext COLLATE utf8mb3_unicode_ci,
140 | `src` longblob,
141 | `created_by` int DEFAULT NULL,
142 | `creation_date` datetime DEFAULT NULL,
143 | `package` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
144 | PRIMARY KEY (`script_source_id`),
145 | KEY `source_date` (`creation_date`),
146 | KEY `vss_sid_creator` (`script_id`,`created_by`)
147 | ) ENGINE=InnoDB AUTO_INCREMENT=28552 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
148 | /*!40101 SET character_set_client = @saved_cs_client */;
149 |
150 | --
151 | -- Table structure for table `vs_scripts`
152 | --
153 |
154 | DROP TABLE IF EXISTS `vs_scripts`;
155 | /*!40101 SET @saved_cs_client = @@character_set_client */;
156 | /*!50503 SET character_set_client = utf8mb4 */;
157 | CREATE TABLE `vs_scripts` (
158 | `script_id` int NOT NULL AUTO_INCREMENT,
159 | `script_name` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
160 | `script_type` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
161 | `summary` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
162 | `description` longtext COLLATE utf8mb3_unicode_ci,
163 | `install_details` longtext COLLATE utf8mb3_unicode_ci,
164 | `ratings` int DEFAULT NULL,
165 | `rating_score` int DEFAULT NULL,
166 | `downloads` int DEFAULT NULL,
167 | `last_updated_by` int DEFAULT NULL,
168 | `last_update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
169 | `created_by` int DEFAULT NULL,
170 | `creation_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
171 | PRIMARY KEY (`script_id`),
172 | KEY `created_by` (`created_by`),
173 | FULLTEXT KEY `summary` (`summary`,`description`,`install_details`)
174 | ) ENGINE=InnoDB AUTO_INCREMENT=6079 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
175 | /*!40101 SET character_set_client = @saved_cs_client */;
176 |
177 | --
178 | -- Table structure for table `vs_sessions`
179 | --
180 |
181 | DROP TABLE IF EXISTS `vs_sessions`;
182 | /*!40101 SET @saved_cs_client = @@character_set_client */;
183 | /*!50503 SET character_set_client = utf8mb4 */;
184 | CREATE TABLE `vs_sessions` (
185 | `session_id` varchar(32) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
186 | `user_id` int DEFAULT NULL,
187 | `remote_address` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
188 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
189 | PRIMARY KEY (`session_id`)
190 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
191 | /*!40101 SET character_set_client = @saved_cs_client */;
192 |
193 | --
194 | -- Table structure for table `vs_users`
195 | --
196 |
197 | DROP TABLE IF EXISTS `vs_users`;
198 | /*!40101 SET @saved_cs_client = @@character_set_client */;
199 | /*!50503 SET character_set_client = utf8mb4 */;
200 | CREATE TABLE `vs_users` (
201 | `user_id` int NOT NULL AUTO_INCREMENT,
202 | `user_name` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
203 | `password` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
204 | `first_name` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
205 | `last_name` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
206 | `email` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
207 | `access` int DEFAULT NULL,
208 | `homepage` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
209 | `sponsor_amount` int DEFAULT NULL,
210 | `sponsor_vote_amount` int DEFAULT NULL,
211 | `sponsor_vote_date` date DEFAULT NULL,
212 | `sponsor_flags` int DEFAULT NULL,
213 | `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
214 | PRIMARY KEY (`user_id`)
215 | ) ENGINE=InnoDB AUTO_INCREMENT=79919 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
216 | /*!40101 SET character_set_client = @saved_cs_client */;
217 |
218 | --
219 | -- Table structure for table `vt_tip_note_spam`
220 | --
221 |
222 | DROP TABLE IF EXISTS `vt_tip_note_spam`;
223 | /*!40101 SET @saved_cs_client = @@character_set_client */;
224 | /*!50503 SET character_set_client = utf8mb4 */;
225 | CREATE TABLE `vt_tip_note_spam` (
226 | `tip_spam_note_id` int NOT NULL AUTO_INCREMENT,
227 | `moderated_by` int NOT NULL DEFAULT '0',
228 | `moderated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
229 | `tip_note_id` int NOT NULL DEFAULT '0',
230 | `tip_id` int NOT NULL DEFAULT '0',
231 | `note` longtext COLLATE utf8mb3_unicode_ci NOT NULL,
232 | `created_by` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
233 | `created_by_email` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
234 | `last_update_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
235 | `creation_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
236 | `last_updated_by_email` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
237 | PRIMARY KEY (`tip_spam_note_id`)
238 | ) ENGINE=InnoDB AUTO_INCREMENT=4795 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
239 | /*!40101 SET character_set_client = @saved_cs_client */;
240 |
241 | --
242 | -- Table structure for table `vt_tip_notes`
243 | --
244 |
245 | DROP TABLE IF EXISTS `vt_tip_notes`;
246 | /*!40101 SET @saved_cs_client = @@character_set_client */;
247 | /*!50503 SET character_set_client = utf8mb4 */;
248 | CREATE TABLE `vt_tip_notes` (
249 | `tip_note_id` int NOT NULL AUTO_INCREMENT,
250 | `tip_id` int DEFAULT NULL,
251 | `note` longtext COLLATE utf8mb3_unicode_ci,
252 | `last_updated_by_email` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
253 | `last_update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
254 | `created_by` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
255 | `created_by_email` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
256 | `creation_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
257 | PRIMARY KEY (`tip_note_id`)
258 | ) ENGINE=InnoDB AUTO_INCREMENT=12968 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
259 | /*!40101 SET character_set_client = @saved_cs_client */;
260 |
261 | --
262 | -- Table structure for table `vt_tip_ratings`
263 | --
264 |
265 | DROP TABLE IF EXISTS `vt_tip_ratings`;
266 | /*!40101 SET @saved_cs_client = @@character_set_client */;
267 | /*!50503 SET character_set_client = utf8mb4 */;
268 | CREATE TABLE `vt_tip_ratings` (
269 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
270 | `tip_id` int DEFAULT NULL,
271 | `rating` int DEFAULT NULL,
272 | `ip` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
273 | KEY `vt_tip_ratings_n1` (`ip`),
274 | KEY `vt_tip_ratings_n2` (`tip_id`)
275 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
276 | /*!40101 SET character_set_client = @saved_cs_client */;
277 |
278 | --
279 | -- Table structure for table `vt_tip_spam`
280 | --
281 |
282 | DROP TABLE IF EXISTS `vt_tip_spam`;
283 | /*!40101 SET @saved_cs_client = @@character_set_client */;
284 | /*!50503 SET character_set_client = utf8mb4 */;
285 | CREATE TABLE `vt_tip_spam` (
286 | `tip_spam_id` int NOT NULL AUTO_INCREMENT,
287 | `moderated_by` int DEFAULT NULL,
288 | `moderated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
289 | `tip_id` int DEFAULT NULL,
290 | `summary` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
291 | `tip` longtext COLLATE utf8mb3_unicode_ci,
292 | `version` enum('5.7','6.0') COLLATE utf8mb3_unicode_ci DEFAULT NULL,
293 | `complexity` enum('basic','intermediate','advanced') COLLATE utf8mb3_unicode_ci DEFAULT NULL,
294 | `last_updated_by_email` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
295 | `last_update_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
296 | `created_by` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
297 | `created_by_email` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
298 | `creation_date` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
299 | `ratings` int DEFAULT NULL,
300 | `rating_score` int DEFAULT NULL,
301 | `viewed` int DEFAULT NULL,
302 | PRIMARY KEY (`tip_spam_id`)
303 | ) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
304 | /*!40101 SET character_set_client = @saved_cs_client */;
305 |
306 | --
307 | -- Table structure for table `vt_tip_views`
308 | --
309 |
310 | DROP TABLE IF EXISTS `vt_tip_views`;
311 | /*!40101 SET @saved_cs_client = @@character_set_client */;
312 | /*!50503 SET character_set_client = utf8mb4 */;
313 | CREATE TABLE `vt_tip_views` (
314 | `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
315 | `tip_id` int DEFAULT NULL,
316 | `ip` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
317 | KEY `vt_tip_views_n1` (`ip`)
318 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
319 | /*!40101 SET character_set_client = @saved_cs_client */;
320 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
321 |
322 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
323 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
324 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
325 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
326 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
327 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
328 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
329 |
330 | -- Dump completed on 2023-10-13 22:24:08
331 |
--------------------------------------------------------------------------------