2024-04-17 09:40:12 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class SQLColumnType(Enum):
|
|
|
|
BIGINT = 'bigint(20)'
|
|
|
|
INT = 'int(11)'
|
2024-04-17 10:40:55 +02:00
|
|
|
VARCHAR = 'varchar(255)'
|
2024-04-17 10:55:01 +02:00
|
|
|
DATE = 'date'
|
2024-04-17 16:35:11 +02:00
|
|
|
TIME = 'time'
|
2024-04-17 09:40:12 +02:00
|
|
|
|
|
|
|
class SQLColumn:
|
|
|
|
|
|
|
|
def __init__(self, column_name: str, column_type: SQLColumnType, nullable: bool):
|
|
|
|
self.columnName = column_name
|
|
|
|
self.columnType = column_type
|
|
|
|
self.nullable = nullable
|
|
|
|
|