-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28467c7
commit c42c267
Showing
10 changed files
with
7,831 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE article_likes | ||
( | ||
id BIGINT AUTO_INCREMENT NOT NULL, | ||
article_id BIGINT NOT NULL, | ||
client_id VARCHAR(256) NOT NULL, | ||
created_at BIGINT NOT NULL, | ||
is_like tinyint(1) NOT NULL DEFAULT 1, | ||
PRIMARY KEY (id), | ||
INDEX ARTICLE_ID_IS_LIKE (article_id, is_like) | ||
) Engine = INNODB | ||
AUTO_INCREMENT = 1000000 | ||
DEFAULT CHARSET = utf8mb4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE search_keywords | ||
( | ||
id BIGINT AUTO_INCREMENT NOT NULL, | ||
search_count INT NOT NULL, | ||
keyword VARCHAR(256) NOT NULL, | ||
created_at BIGINT NOT NULL, | ||
updated_at BIGINT NOT NULL, | ||
PRIMARY KEY (id), | ||
INDEX KEYWORD (keyword) | ||
) Engine = INNODB | ||
AUTO_INCREMENT = 1000000 | ||
DEFAULT CHARSET = utf8mb4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
-- ---------------------------- | ||
-- Table structure for archive_authors | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archive_authors`; | ||
CREATE TABLE `archive_authors` | ||
( | ||
`archive_id` bigint(20) NOT NULL, | ||
`author` varchar(60) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', | ||
PRIMARY KEY (`archive_id`, `author`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- ---------------------------- | ||
-- Table structure for archive_origs | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archive_origs`; | ||
CREATE TABLE `archive_origs` | ||
( | ||
`archive_id` bigint(20) NOT NULL, | ||
`orig` varchar(255) CHARACTER SET utf8mb4 NOT NULL, | ||
PRIMARY KEY (`archive_id`, `orig`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- ---------------------------- | ||
-- Table structure for archive_publishers | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archive_publishers`; | ||
CREATE TABLE `archive_publishers` | ||
( | ||
`archive_id` bigint(20) NOT NULL, | ||
`publisher` varchar(60) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', | ||
PRIMARY KEY (`archive_id`, `publisher`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- ---------------------------- | ||
-- Table structure for archive_remarks | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archive_remarks`; | ||
CREATE TABLE `archive_remarks` | ||
( | ||
`archive_id` bigint(20) NOT NULL, | ||
`remarks` mediumtext CHARACTER SET utf8mb4 NOT NULL, | ||
PRIMARY KEY (`archive_id`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- ---------------------------- | ||
-- Table structure for archive_tags | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archive_tags`; | ||
CREATE TABLE `archive_tags` | ||
( | ||
`archive_id` bigint(20) NOT NULL, | ||
`tag` varchar(60) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', | ||
PRIMARY KEY (`archive_id`, `tag`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; | ||
|
||
-- ---------------------------- | ||
-- Table structure for archives | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `archives`; | ||
CREATE TABLE `archives` | ||
( | ||
`id` bigint(20) NOT NULL, | ||
`created_at` bigint(20) NOT NULL, | ||
`updated_at` bigint(20) NOT NULL, | ||
`title` varchar(255) NOT NULL DEFAULT '', | ||
`publish_year` smallint(4) unsigned NOT NULL, | ||
`publish_month` tinyint(2) NOT NULL, | ||
`chapter` varchar(4) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
-- | ||
-- PostgreSQL database dump | ||
-- | ||
|
||
-- Dumped from database version 9.6.10 | ||
-- Dumped by pg_dump version 9.6.10 | ||
|
||
SET statement_timeout = 0; | ||
SET lock_timeout = 0; | ||
SET idle_in_transaction_session_timeout = 0; | ||
SET client_encoding = 'UTF8'; | ||
SET standard_conforming_strings = on; | ||
SELECT pg_catalog.set_config('search_path', '', false); | ||
SET check_function_bodies = false; | ||
SET client_min_messages = warning; | ||
SET row_security = off; | ||
|
||
-- | ||
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: | ||
-- | ||
|
||
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; | ||
|
||
|
||
-- | ||
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: | ||
-- | ||
|
||
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; | ||
|
||
|
||
SET default_tablespace = ''; | ||
|
||
SET default_with_oids = false; | ||
|
||
-- | ||
-- Name: _article_likes; Type: TABLE; Schema: public; Owner: rebasedata | ||
-- | ||
|
||
CREATE TABLE public._article_likes ( | ||
id character varying(1) DEFAULT NULL::character varying, | ||
article_id character varying(1) DEFAULT NULL::character varying, | ||
client_id character varying(1) DEFAULT NULL::character varying, | ||
created_at character varying(1) DEFAULT NULL::character varying, | ||
is_like character varying(1) DEFAULT NULL::character varying | ||
); | ||
|
||
|
||
ALTER TABLE public._article_likes OWNER TO rebasedata; | ||
|
||
-- | ||
-- Data for Name: _article_likes; Type: TABLE DATA; Schema: public; Owner: rebasedata | ||
-- | ||
|
||
COPY public._article_likes (id, article_id, client_id, created_at, is_like) FROM stdin; | ||
\. | ||
|
||
|
||
-- | ||
-- PostgreSQL database dump complete | ||
-- | ||
|
Oops, something went wrong.