-- Routed to Redacted Stuff by housekeeping on 2026-08-19.
-- Reviewed: this dump is SCHEMA ONLY (CREATE TABLE) with ZERO data rows;
-- the email/ip/password/etc. below are column DEFINITIONS, not user data.
-- Nothing to redact; retained for reference.

CREATE TABLE IF NOT EXISTS `posts_news` (
   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
   `thread` int(11) DEFAULT NULL,
   `subject` varchar(100) DEFAULT NULL,
   `email` varchar(30) DEFAULT NULL,
   `name` varchar(35) DEFAULT NULL,
   `trip` varchar(15) DEFAULT NULL,
   `capcode` varchar(50) DEFAULT NULL,
   `body` text NOT NULL,
   `body_nomarkup` text,
   `time` int(11) NOT NULL,
   `bump` int(11) DEFAULT NULL,
   `files` text DEFAULT NULL,
   `num_files` int(11) DEFAULT 0,
   `filehash` text CHARACTER SET ascii,
   `password` varchar(20) DEFAULT NULL,
   `ip` varchar(39) CHARACTER SET ascii NOT NULL,
   `sticky` int(1) NOT NULL,
   `locked` int(1) NOT NULL,
   `cycle` int(1) NOT NULL,
   `sage` int(1) NOT NULL,
   `embed` text,
   `slug` varchar(256) DEFAULT NULL,
   `sharty_browser_hash` text CHARACTER SET ascii,
   `show_ids` TINYINT(1) NOT NULL DEFAULT 0,
   `images_only` TINYINT(1) NOT NULL DEFAULT 0,
   `mediator_votes` int(10) NOT NULL DEFAULT 0,
   `news_approved` TINYINT(1) NOT NULL DEFAULT 0,
   `invincible` TINYINT(1) NOT NULL DEFAULT 0,
   `geo_flags` TINYINT(1) NOT NULL DEFAULT 0,
   `post_flags` bit(32) DEFAULT b'00000000000000000000000000000000',
   `hobbled` TINYINT(1) NOT NULL DEFAULT 0,
   `passkey` text CHARACTER SET ascii,
   `country` char(2) CHARACTER SET ascii,
   `mod_id` smallint(6) unsigned DEFAULT NULL,
   `integrity` text DEFAULT NULL,
   `decryption_key` varchar(32) DEFAULT NULL,
   `integrity_hash` varchar(32) DEFAULT NULL,
   UNIQUE KEY `id` (`id`),
   KEY `thread_id` (`thread`,`id`),
   KEY `filehash` (`filehash`(1024)),
   KEY `time` (`time`),
   KEY `ip` (`ip`),
   KEY `sharty_browser_hash` (`sharty_browser_hash`(64)),
   KEY `passkey` (`passkey`(64)),
   KEY `list_threads` (`thread`, `sticky`, `bump`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci AUTO_INCREMENT=1;

 
