Skip to content

Commit

Permalink
Merge pull request #27 from 1962247851/dev
Browse files Browse the repository at this point in the history
build: sql
  • Loading branch information
1962247851 committed Jul 2, 2023
2 parents ad808f7 + cc20182 commit f336933
Showing 1 changed file with 26 additions and 98 deletions.
124 changes: 26 additions & 98 deletions ordinaryroad-blog-quarkus/sql/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,78 +22,6 @@
* SOFTWARE.
*/

/*
* MIT License
*
* Copyright (c) 2021 苗锦洲
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/*
* MIT License
*
* Copyright (c) 2021 苗锦洲
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/*
* MIT License
*
* Copyright (c) 2021 苗锦洲
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

# DROP DATABASE IF EXISTS or_blog_dev;
CREATE DATABASE or_blog_dev;
USE or_blog_dev;
Expand Down Expand Up @@ -247,30 +175,6 @@ CREATE TABLE `blog_comment`
COLLATE = utf8mb4_0900_as_ci COMMENT = '博客评论表'
ROW_FORMAT = Dynamic;

/*
* MIT License
*
* Copyright (c) 2021 苗锦洲
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

-- ----------------------------
-- Table structure for blog_role
-- ----------------------------
Expand Down Expand Up @@ -440,6 +344,30 @@ CREATE TABLE `blog_user_browsed_article`
COLLATE = utf8mb4_0900_as_ci COMMENT = '博客用户浏览的文章表'
ROW_FORMAT = Dynamic;

/*
* MIT License
*
* Copyright (c) 2021 苗锦洲
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

-- ----------------------------
-- Table structure for blog_user_liked_article
-- ----------------------------
Expand Down Expand Up @@ -484,9 +412,9 @@ CREATE TABLE `blog_friend_link`
`url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL COMMENT '网站地址',
`logo` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL COMMENT '网站logo地址',
`email` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL COMMENT '站长email',
`snapshotUrl` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL COMMENT '网站快照地址',
`snapshot_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL COMMENT '网站快照地址',
`status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci NULL DEFAULT NULL COMMENT '状态',
`enabled` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否启用',
`enabled` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `blog_friend_link_uuid_uindex` (`uuid`) USING BTREE
Expand Down

0 comments on commit f336933

Please sign in to comment.