from django.db import models

# Create your models here.
# 클래스의 기능: 상속
class Question(models.Model): # Table
    question_text= models.CharField(max_length= 100) # column, datatype
    public_date= models.CharField(max_length= 100)
    votes= models.DecimalField(max_digits= 20, decimal_places= 10)
# 위의 2개 타입으로 클래스 만들면 ok
# link, string-> CharField, data-> DecimalField
# 보통 max_length= 100으로 함

class Economics(models.Model):
    title= models.CharField(max_length= 100)
    href= models.CharField(max_length= 100)
    create_date= models.CharField(max_length= 100)

[((6, 19, 6, 52), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((7, 17, 7, 50), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((8, 11, 8, 66), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import models\n'), ((14, 11, 14, 44), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((15, 10, 15, 43), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((16, 17, 16, 50), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n')]