diff --git a/.gitignore b/.gitignore index b75ee21..f6197c0 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,5 @@ build/ .vscode/ /target/ -/sql/ application.yml 5963105_www.peteralbus.com.pfx diff --git a/sql/blog.sql b/sql/blog.sql new file mode 100644 index 0000000..700dd76 --- /dev/null +++ b/sql/blog.sql @@ -0,0 +1,18 @@ +CREATE SCHEMA `blogs` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +use blogs; +CREATE TABLE `blogs`.`blog` ( + `blog_id` INT NOT NULL AUTO_INCREMENT, + `blog_title` VARCHAR(50) CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci' NOT NULL, + `blogImg` VARCHAR(100) CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci' NOT NULL, + `blogType` INT NOT NULL, + `blogDescription` VARCHAR(200) CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci' NOT NULL, + `blogAuthor` VARCHAR(50) CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci' NOT NULL, + `blogContent` TEXT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci' NOT NULL, + `blogTime` DATE NOT NULL, + `blogLike` INT NOT NULL, + `blogViews` INT NOT NULL, + `isTop` INT NOT NULL, + PRIMARY KEY (`blog_id`)) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8mb4 +COLLATE = utf8mb4_unicode_ci;