UserFavorites system
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 5.1.2 on 2025-10-23 08:50
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('account', '0029_shopmodel'),
|
||||
('product', '0055_alter_productmodel_options'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='UserFavorites',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('products', models.ManyToManyField(blank=True, to='product.productmodel', verbose_name='Likes')),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'User Favorites',
|
||||
'verbose_name_plural': 'Users Favorites',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user