mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
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
|