ft_transcendence/chat/models.py

18 lines
505 B
Python
Raw Normal View History

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)
time = models.DateField()