From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.94]) by gnuweeb.org (Postfix) with ESMTPSA id DD49380638; Wed, 27 Jul 2022 02:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658890016; bh=OxC9AoColvkD3/hrNs3N5fVEtNSfmJu52bL8lwEmjbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ArobOjCFjlizK/1MA2mR8i00e6ZIQ/0dMqnC1lPoDwgvrlxX0l9o1xDw9860Je4lh IVE8iPtbWkbHvKT1Rc4zQLd6oQF1ZavuX5dfkIKsxYgiIHR9bdkC2SSRO9Lv+7EBoS r2nYs3VFTO/oCMw9lB3blt5YVopzM4PxdrH97OeR/UqMiJDUxnl3RXRWMFeFKrrAHt a/KRbG6AegyhiHJIzSJzA51QDsj1/DtwYAIoNEw/xXEV7GbuIlxSQeoQ1OpB9wyPV8 LCm6+Gh6xj4sLZ3Ojx+Yjp7FHVdOeqNDrcCNTqo8e/G2MtsIsU69qYiOV67SCrFf08 qVk9beRCz6BJg== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , GNU/Weeb Mailing List Subject: [PATCH v1 01/18] Add atom_broadcast.sql Date: Wed, 27 Jul 2022 09:46:17 +0700 Message-Id: <20220727024634.1995-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220727024634.1995-1-kiizuha@gnuweeb.org> References: <20220727024634.1995-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Just add an atom_broadcast.sql file to create new table. Signed-off-by: Muhammad Rizki --- .gitignore | 4 ++++ daemon/atom_broadcast.sql | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 daemon/atom_broadcast.sql diff --git a/.gitignore b/.gitignore index ca28962..511dbbe 100644 --- a/.gitignore +++ b/.gitignore @@ -136,4 +136,8 @@ data.json # VSCode editor .vscode/ +# PATCH *.patch + +# RFC directory +RFC \ No newline at end of file diff --git a/daemon/atom_broadcast.sql b/daemon/atom_broadcast.sql new file mode 100644 index 0000000..580e46f --- /dev/null +++ b/daemon/atom_broadcast.sql @@ -0,0 +1,25 @@ +DROP TABLE IF EXISTS `atom_urls`; +CREATE TABLE `atom_urls` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `url` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `created_at` datetime NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `url` (`url`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; + +DROP TABLE IF EXISTS `broadcast_chats`; +CREATE TABLE `broadcast_chats` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `chat_id` bigint NOT NULL, + `username` varchar(32), + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `type` varchar(32) NOT NULL, + `link` varchar(64), + `created_at` datetime NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `chat_id` (`chat_id`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; + +-- 2022-07-25 09:26:43 -- Muhammad Rizki