models.py 547 B

1234567891011121314151617
  1. from django.db import models
  2. class Payment(models.Model):
  3. payment_type = models.CharField(max_length=100)
  4. price_type = models.CharField(max_length=100)
  5. item_type = models.CharField(max_length=100)
  6. index_type = models.CharField(max_length=100)
  7. index_price = models.IntegerField()
  8. year = models.CharField(max_length=4)
  9. month = models.CharField(max_length=2)
  10. class Meta:
  11. app_label = "payment"
  12. db_table = "pay"
  13. verbose_name = "支出报表"
  14. verbose_name_plural = "支出报表列表"