ticketfrei3/kibicara/platforms/test/model.py
2020-12-30 21:45:06 +01:00

17 lines
389 B
Python

# Copyright (C) 2020 by Thomas Lindner <tom@dl6tom.de>
# Copyright (C) 2020 by Martin Rey <martin.rey@mailbox.org>
#
# SPDX-License-Identifier: 0BSD
from ormantic import ForeignKey, Integer, Model
from kibicara.model import Hood, Mapping
class Test(Model):
id: Integer(primary_key=True) = None
hood: ForeignKey(Hood)
class Mapping(Mapping):
table_name = 'testapi'