From a9c9f4f1c0bb042bc5453b08504b5bdba264391e Mon Sep 17 00:00:00 2001 From: maike Date: Sun, 5 Jul 2020 23:37:01 +0200 Subject: [PATCH] [email] We don't need mail_data, but we need a DB secret --- kibicara/platforms/email/model.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kibicara/platforms/email/model.py b/kibicara/platforms/email/model.py index de8da0f..08ec261 100644 --- a/kibicara/platforms/email/model.py +++ b/kibicara/platforms/email/model.py @@ -1,4 +1,4 @@ -# Copyright (C) 2020 by Thomas Lindner +# Copyright (C) 2020 by Maike # # SPDX-License-Identifier: 0BSD @@ -14,10 +14,11 @@ class EmailRecipients(Model): class Mapping(Mapping): table_name = 'email_recipients' -class EmailSeen(Model): + +class Email(Model): id: Integer(primary_key=True) = None hood: ForeignKey(Hood) - mail_date: DateTime() + secret: Text() class Mapping(Mapping): - table_name = 'email_seen' + table_name = 'email'