butler_ddochi/mm_msg/models.py
icurfer ea11832a53
Some checks failed
Build And Test / build-and-push (push) Failing after 53s
init
2024-12-13 17:12:03 +09:00

12 lines
467 B
Python

from django.db import models
class Message(models.Model):
title = models.CharField(max_length=100, null=True) # 메시지 제목
text = models.TextField()
send_time = models.DateTimeField() # 메시지를 전송할 시간
created_at = models.DateTimeField(auto_now_add=True)
is_sent = models.BooleanField(default=False) # 메시지 전송 여부
def __str__(self):
return f"{self.title} ::: Message scheduled at {self.send_time}"