ticketfrei3/kibicara/platforms/email/model.py

25 lines
540 B
Python

# Copyright (C) 2020 by Maike <tom@dl6tom.de>
#
# SPDX-License-Identifier: 0BSD
from kibicara.model import Hood, Mapping
from ormantic import Integer, ForeignKey, Model, Text, DateTime
class EmailRecipients(Model):
id: Integer(primary_key=True) = None
hood: ForeignKey(Hood)
email: Text()
class Mapping(Mapping):
table_name = 'email_recipients'
class Email(Model):
id: Integer(primary_key=True) = None
hood: ForeignKey(Hood)
secret: Text()
class Mapping(Mapping):
table_name = 'email'