2020-07-01 19:37:02 +00:00
|
|
|
# Copyright (C) 2020 by Thomas Lindner <tom@dl6tom.de>
|
2020-09-28 22:54:34 +00:00
|
|
|
# Copyright (C) 2020 by Martin Rey <martin.rey@mailbox.org>
|
2020-07-01 19:37:02 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: 0BSD
|
|
|
|
|
2020-10-13 08:35:20 +00:00
|
|
|
from ormantic import ForeignKey, Integer, Model
|
|
|
|
|
2020-07-01 19:37:02 +00:00
|
|
|
from kibicara.model import Hood, Mapping
|
|
|
|
|
|
|
|
|
|
|
|
class Test(Model):
|
|
|
|
id: Integer(primary_key=True) = None
|
|
|
|
hood: ForeignKey(Hood)
|
|
|
|
|
|
|
|
class Mapping(Mapping):
|
|
|
|
table_name = 'testapi'
|