-- phpMyAdmin SQL Dump
-- version 5.1.1deb5ubuntu1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 12, 2022 at 03:38 PM
-- Server version: 10.6.7-MariaDB-2ubuntu1
-- PHP Version: 8.1.2

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `spamassassin`
--

-- --------------------------------------------------------

--
-- Table structure for table `awl`
--

CREATE TABLE `awl` (
  `username` varchar(100) NOT NULL DEFAULT '',
  `email` varchar(255) NOT NULL DEFAULT '',
  `ip` varchar(40) NOT NULL DEFAULT '',
  `msgcount` int(11) NOT NULL DEFAULT 0,
  `totscore` float NOT NULL DEFAULT 0,
  `signedby` varchar(255) NOT NULL DEFAULT '',
  `last_hit` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `bayes_expire`
--

CREATE TABLE `bayes_expire` (
  `id` int(11) NOT NULL DEFAULT 0,
  `runtime` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `bayes_global_vars`
--

CREATE TABLE `bayes_global_vars` (
  `variable` varchar(30) NOT NULL DEFAULT '',
  `value` varchar(200) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bayes_global_vars`
--

INSERT INTO `bayes_global_vars` (`variable`, `value`) VALUES
('VERSION', '3');

-- --------------------------------------------------------

--
-- Table structure for table `bayes_seen`
--

CREATE TABLE `bayes_seen` (
  `id` int(11) NOT NULL DEFAULT 0,
  `msgid` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
  `flag` char(1) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `bayes_token`
--

CREATE TABLE `bayes_token` (
  `id` int(11) NOT NULL DEFAULT 0,
  `token` binary(5) NOT NULL DEFAULT '\0\0\0\0\0',
  `spam_count` int(11) NOT NULL DEFAULT 0,
  `ham_count` int(11) NOT NULL DEFAULT 0,
  `atime` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `bayes_vars`
--

CREATE TABLE `bayes_vars` (
  `id` int(11) NOT NULL,
  `username` varchar(200) NOT NULL DEFAULT '',
  `spam_count` int(11) NOT NULL DEFAULT 0,
  `ham_count` int(11) NOT NULL DEFAULT 0,
  `token_count` int(11) NOT NULL DEFAULT 0,
  `last_expire` int(11) NOT NULL DEFAULT 0,
  `last_atime_delta` int(11) NOT NULL DEFAULT 0,
  `last_expire_reduce` int(11) NOT NULL DEFAULT 0,
  `oldest_token_age` int(11) NOT NULL DEFAULT 2147483647,
  `newest_token_age` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `userpref`
--

CREATE TABLE `userpref` (
  `username` varchar(100) NOT NULL DEFAULT '',
  `preference` varchar(50) NOT NULL DEFAULT '',
  `value` varchar(1000) NOT NULL DEFAULT '',
  `prefid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `userpref`
--

INSERT INTO `userpref` (`username`, `preference`, `value`, `prefid`) VALUES
('@GLOBAL', 'required_score', '4.0', 1),
('@GLOBAL', 'rewrite_header Subject', '*****SPAM*****', 2),
('@GLOBAL', 'ok_languages', 'all', 3),
('@GLOBAL', 'ok_locales', 'all', 4),
('@GLOBAL', 'fold_headers', '1', 5),
('@GLOBAL', 'add_header all Level', '_STARS(*)_', 6),
('@GLOBAL', 'use_razor1', '0', 7),
('@GLOBAL', 'use_razor2', '1', 8),
('@GLOBAL', 'use_pyzor', '1', 9),
('@GLOBAL', 'use_dcc', '1', 10),
('@GLOBAL', 'use_bayes', '1', 11),
('@GLOBAL', 'skip_rbl_checks', '0', 12),
('@GLOBAL', 'report_safe', '1', 13),
('@GLOBAL', 'bayes_auto_learn', '1', 14),
('@GLOBAL', 'bayes_auto_learn_threshold_nonspam', '0.1', 15),
('@GLOBAL', 'bayes_auto_learn_threshold_spam', '12.0', 16),
('@GLOBAL', 'use_bayes_rules', '1', 17);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `awl`
--
ALTER TABLE `awl`
  ADD PRIMARY KEY (`username`,`email`(150),`signedby`(150),`ip`);

--
-- Indexes for table `bayes_expire`
--
ALTER TABLE `bayes_expire`
  ADD KEY `bayes_expire_idx1` (`id`);

--
-- Indexes for table `bayes_global_vars`
--
ALTER TABLE `bayes_global_vars`
  ADD PRIMARY KEY (`variable`);

--
-- Indexes for table `bayes_seen`
--
ALTER TABLE `bayes_seen`
  ADD PRIMARY KEY (`id`,`msgid`(100));

--
-- Indexes for table `bayes_token`
--
ALTER TABLE `bayes_token`
  ADD PRIMARY KEY (`id`,`token`),
  ADD KEY `bayes_token_idx1` (`id`,`atime`);

--
-- Indexes for table `bayes_vars`
--
ALTER TABLE `bayes_vars`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bayes_vars_idx1` (`username`(100));

--
-- Indexes for table `userpref`
--
ALTER TABLE `userpref`
  ADD PRIMARY KEY (`prefid`),
  ADD KEY `username` (`username`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `bayes_vars`
--
ALTER TABLE `bayes_vars`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `userpref`
--
ALTER TABLE `userpref`
  MODIFY `prefid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
