This commit is contained in:
sankalp committed 2026-06-28 12:36:16 +05:45
1 parent 70fd9711b5
commit 71bfd63799
48 files changed
+227 -3685

No files matched your search

+3 -26
View File
@@ -1,28 +1,5 @@
from django.conf import settings
"""generated with djinit"""
from django.db import models
class ProjectNote(models.Model):
project = models.ForeignKey(
"projects.Project", on_delete=models.CASCADE, related_name="notes"
)
created_by = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="project_notes"
)
title = models.CharField(max_length=255)
content = models.TextField(blank=True, null=True)
note_date = models.DateField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
db_table = "project_notes"
verbose_name = "Project Note"
verbose_name_plural = "Project Notes"
indexes = [
models.Index(fields=["project", "note_date"]),
]
def __str__(self):
return f"{self.title} - {self.project.name}"
# Create your models here.