You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

5 years ago
  1. from django.db import models
  2. from django.contrib.auth.models import AbstractUser
  3. # Create your models here.
  4. class Notice(models.Model):
  5. author = models.CharField(max_length=10, null=False)
  6. title = models.CharField(max_length=100, null=False)
  7. content = models.TextField(null=False)
  8. created_date = models.DateTimeField(auto_now_add=True)
  9. modified_date = models.DateTimeField(auto_now=True)
  10. class Board(models.Model):
  11. author = models.CharField(max_length=10, null=False)
  12. title = models.CharField(max_length=100, null=False)
  13. content = models.TextField(null=False)
  14. created_date = models.DateTimeField(auto_now_add=True)
  15. modified_date = models.DateTimeField(auto_now=True)
  16. class Taxi(models.Model):
  17. author = models.CharField(max_length=10, null=False)
  18. title = models.CharField(max_length=100, null=False)
  19. content = models.TextField(null=False)
  20. created_date = models.DateTimeField(auto_now_add=True)
  21. modified_date = models.DateTimeField(auto_now=True)
  22. class User(AbstractUser):
  23. student_id = models.CharField(max_length=10)
  24. student_cl = models.CharField(max_length=255)