[feat] add user and add event

This commit is contained in:
Data-Name-ID
2024-04-02 03:26:13 +03:00
parent 52233d0028
commit 9f233eb163
22 changed files with 260 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
from django.db import models
from api.core.models import BaseModel
class Event(BaseModel):
title = models.CharField(max_length=255)
users = models.ManyToManyField(
"users.User",
related_name="events",
blank=True,
)
def __str__(self):
return self.title