refactor fields into a package

This commit is contained in:
collerek
2020-08-11 17:34:19 +02:00
parent 704e83fed0
commit 867fc691f7
13 changed files with 335 additions and 290 deletions

31
orm/fields/__init__.py Normal file
View File

@ -0,0 +1,31 @@
from orm.fields.model_fields import (
BigInteger,
Boolean,
Date,
DateTime,
Decimal,
String,
Integer,
Text,
Float,
Time,
JSON,
)
from orm.fields.foreign_key import ForeignKey
from orm.fields.base import BaseField
__all__ = [
"Decimal",
"BigInteger",
"Boolean",
"Date",
"DateTime",
"String",
"JSON",
"Integer",
"Text",
"Float",
"Time",
"ForeignKey",
"BaseField",
]