mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
9 lines
356 B
Python
9 lines
356 B
Python
from django.db import models
|
|
from spa.models.basemodel import BaseModel
|
|
from spa.models.userprofile import UserProfile
|
|
|
|
|
|
class ChatMessage(BaseModel):
|
|
message = models.TextField('Message')
|
|
timestamp = models.DateTimeField('Timestamp', auto_now_add=True)
|
|
user = models.ForeignKey(UserProfile, related_name='chat_messages', blank=True, null=True) |