create contact history table to track sent emails

This commit is contained in:
Lynne Megido 2019-09-01 15:03:18 +10:00
parent 316f7291dd
commit 7a1658c3c9
2 changed files with 10 additions and 3 deletions

View File

@ -47,4 +47,11 @@ CREATE TABLE IF NOT EXISTS `word_blacklist` (
FOREIGN KEY (`bot_id`) REFERENCES bots(id) ON DELETE CASCADE,
`phrase` VARCHAR(128) NOT NULL,
`whole_word` BOOLEAN NOT NULL
)
);
CREATE TABLE IF NOT EXISTS `contact_history` (
FOREIGN KEY (`user_id`) REFERENCES users(id) ON DELETE CASCADE,
`fetch` BOOLEAN DEFAULT 0,
`submit` BOOLEAN DEFAULT 0,
`generation` BOOLEAN DEFAULT 0,
`reply` BOOLEAN DEFAULT 0
);

View File

@ -8,7 +8,7 @@
<body>
<div class="container">
<h1 class="thin centred">Create bot</h1>
<h1 class="thin centred">Add account</h1>
<p class="large thin centred">Step {{ session['step'] }}</p>
</div>
@ -32,7 +32,7 @@
{% else %}
<h2 class="thin centred">Error</h2>
<p>An unknown error has occurred.</p>
{% endif %}
<div class="container centred">