2023-11-27 17:31:31 -05:00
|
|
|
from django.db import models
|
2023-12-12 04:05:13 -05:00
|
|
|
from django.db.models import IntegerField
|
|
|
|
from django.contrib.auth.models import User
|
2023-11-27 17:31:31 -05:00
|
|
|
|
|
|
|
# Create your models here.
|
2023-12-12 04:05:13 -05:00
|
|
|
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)
|
2023-12-16 05:58:50 -05:00
|
|
|
time = models.DateField()
|