[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
+14
View File
@@ -0,0 +1,14 @@
from django.db import models
from api.core.models import BaseModel
class User(BaseModel):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email = models.EmailField()
birth_date = models.DateTimeField()
bio = models.TextField()
def __str__(self):
return f"{self.first_name} {self.last_name}"