init
This commit is contained in:
8
backend/apps/shelves/models.py
Normal file
8
backend/apps/shelves/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.db import models
|
||||
from apps.user.models import User
|
||||
|
||||
|
||||
class Shelf(models.Model):
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="shelves")
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
Reference in New Issue
Block a user