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.
 
 

30 lines
1.1 KiB

from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class Notice(models.Model):
author = models.CharField(max_length=10, null=False)
title = models.CharField(max_length=100, null=False)
content = models.TextField(null=False)
created_date = models.DateTimeField(auto_now_add=True)
modified_date = models.DateTimeField(auto_now=True)
class Board(models.Model):
author = models.CharField(max_length=10, null=False)
title = models.CharField(max_length=100, null=False)
content = models.TextField(null=False)
created_date = models.DateTimeField(auto_now_add=True)
modified_date = models.DateTimeField(auto_now=True)
class Taxi(models.Model):
author = models.CharField(max_length=10, null=False)
title = models.CharField(max_length=100, null=False)
content = models.TextField(null=False)
created_date = models.DateTimeField(auto_now_add=True)
modified_date = models.DateTimeField(auto_now=True)
class User(AbstractUser):
student_id = models.CharField(max_length=10)
student_cl = models.CharField(max_length=255)