bugungi kun

This commit is contained in:
behruz-dev
2025-11-22 18:09:24 +05:00
parent 4667da44f4
commit 15835b4c2d
16 changed files with 410 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
from django.db import models
# shared
from core.apps.shared.models import BaseModel
# accounts
from core.apps.accounts.models import User
class Plan(BaseModel):
title = models.CharField(max_length=200)
description = models.TextField()
date = models.DateField()
# relations
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='plans')
def __str__(self):
return self.title