from django.db import models from django.db.models import IntegerField from django.contrib.auth.models import User # Create your models here. class ChannelModel(models.Model): pass class MemberModel(models.Model): member_id = IntegerField(primary_key=False) channel_id = IntegerField(primary_key=False) class MessageModel(models.Model): channel_id = IntegerField(primary_key=False) author_id = IntegerField(primary_key=False) content = models.CharField(max_length=255) time = models.DateField()