ticketfrei3/kibicara/platforms/test/model.py

15 lines
328 B
Python
Raw Normal View History

2020-07-01 19:37:02 +00:00
# Copyright (C) 2020 by Thomas Lindner <tom@dl6tom.de>
#
# SPDX-License-Identifier: 0BSD
from kibicara.model import Hood, Mapping
from ormantic import Integer, ForeignKey, Model
class Test(Model):
id: Integer(primary_key=True) = None
hood: ForeignKey(Hood)
class Mapping(Mapping):
table_name = 'testapi'