16 lines
313 B
Python
16 lines
313 B
Python
|
from enum import Enum
|
||
|
|
||
|
|
||
|
class SQLColumnType(Enum):
|
||
|
BIGINT = 'bigint(20)'
|
||
|
INT = 'int(11)'
|
||
|
|
||
|
|
||
|
class SQLColumn:
|
||
|
|
||
|
def __init__(self, column_name: str, column_type: SQLColumnType, nullable: bool):
|
||
|
self.columnName = column_name
|
||
|
self.columnType = column_type
|
||
|
self.nullable = nullable
|
||
|
|