38 lines
1.3 KiB
Python
Executable File
38 lines
1.3 KiB
Python
Executable File
# Generated by Django 5.0.7 on 2024-08-24 04:16
|
|
|
|
from datetime import datetime
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("WebAdmin", "0006_videogeneration_slug"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Plan",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("title", models.CharField(max_length=100, unique=True)),
|
|
("description", models.TextField()),
|
|
("price", models.DecimalField(decimal_places=2, max_digits=10)),
|
|
("credits_per_month", models.IntegerField(default=0)),
|
|
("created_at", models.DateTimeField(default=datetime.now)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
("is_promotional", models.BooleanField(default=False)),
|
|
("unlimited_exports", models.BooleanField(default=False)),
|
|
("smart_music_sync", models.BooleanField(default=False)),
|
|
],
|
|
),
|
|
]
|