Begin ad CRUD
This commit is contained in:
48
core/migrations/0009_asset_provider_ad.py
Normal file
48
core/migrations/0009_asset_provider_ad.py
Normal file
@@ -0,0 +1,48 @@
|
||||
# Generated by Django 4.1.7 on 2023-03-10 00:41
|
||||
|
||||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0008_platform'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Asset',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=64)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Provider',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=64)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Ad',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('text', models.TextField()),
|
||||
('payment_details', models.TextField()),
|
||||
('payment_details_real', models.TextField()),
|
||||
('payment_method_details', models.CharField(max_length=255)),
|
||||
('dist_list', models.TextField()),
|
||||
('asset_list', models.ManyToManyField(to='core.asset')),
|
||||
('provider_list', models.ManyToManyField(to='core.provider')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user