2024-04-17 18:01:54 +02:00
|
|
|
from typing import List
|
|
|
|
|
2024-04-17 09:40:12 +02:00
|
|
|
from sqlparse.SQLColumn import SQLColumn
|
|
|
|
|
|
|
|
|
|
|
|
class SQLTable:
|
2024-04-17 18:01:54 +02:00
|
|
|
def __init__(self, table_name, columns: List[SQLColumn], primary_key: str, foreign_keys: List[str]):
|
2024-04-17 09:40:12 +02:00
|
|
|
self.table_name = table_name
|
|
|
|
self.columns = columns
|
|
|
|
self.primary_key = primary_key
|
2024-04-17 18:01:54 +02:00
|
|
|
self.foreign_keys = foreign_keys
|
2024-04-17 09:40:12 +02:00
|
|
|
|