장고 모델 필드 DB 컬럼 매핑

1 개요[ | ]

장고 모델 필드 DB 컬럼 매핑
모델 필드 MariaDB 컬럼 비고
BigIntegerField() -9223372036854775808 ~ 9223372036854775807
BooleanField()
CharField() ★ max_length=200 이면 varchar(200)
DateField()
DateTimeField() ★ datetime(6)
DecimalField()
DurationField()
EmailField()
FileField()
FilePathField()
FloatField()
ImageField()
IntegerField() int(11)
GenericIPAddressField()
JSONField() longtext
PositiveBigIntegerField() 0 ~ 9223372036854775807
PositiveIntegerField() 0 ~ 2147483647
PositiveSmallIntegerField() 0 ~ 32767
SlugField()
SmallIntegerField() -32768 ~ 32767
TextField()
TimeField()
URLField()
UUIDField()

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}