gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
21
core/apps/eggs/models/courier.py
Normal file
21
core/apps/eggs/models/courier.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
Courier model
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
from core.http.models import base
|
||||
from core.http.models.user import User
|
||||
|
||||
|
||||
class Courier(base.AbstractBaseModel):
|
||||
user_id = models.ForeignKey(
|
||||
to=User, on_delete=models.CASCADE, related_name="couriers"
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return f"Courier - {self.user_id}"
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Courier"
|
||||
verbose_name_plural = "Couriers"
|
||||
db_table = "courier"
|
||||
Reference in New Issue
Block a user