ft_transcendence/chat/models.py
2023-12-12 10:05:13 +01:00

18 lines
505 B
Python

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()