mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
jw.db.schema is a set of classes meant as an interface to describe a database schema. Signed-off-by: Jan Lindemann <jan@janware.com>
19 lines
393 B
Python
19 lines
393 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Optional, List, Any
|
|
|
|
from .ColumnSet import ColumnSet
|
|
|
|
class SingleForeignKey:
|
|
|
|
def __init__(self, child_col, parent_col):
|
|
self.__child_col = child_col
|
|
self.__parent_col = parent_col
|
|
|
|
@property
|
|
def child_col(self):
|
|
return self.__child_col
|
|
|
|
@property
|
|
def parent_col(self):
|
|
return self.__parent_col
|