base setup
This commit is contained in:
41
at_django_boilerplate/core/migrations/0001_initial.py
Normal file
41
at_django_boilerplate/core/migrations/0001_initial.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# Generated by Django 5.2.6 on 2025-12-29 05:20
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ABTestRecord',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('session_key', models.CharField(max_length=255, unique=True)),
|
||||
('variant', models.CharField(choices=[('A', 'index.html'), ('B', 'index2.html')], max_length=1)),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Subscriber',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('email', models.EmailField(max_length=254, unique=True)),
|
||||
('subscribed_at', models.DateTimeField(auto_now_add=True)),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Subscriber',
|
||||
'verbose_name_plural': 'Subscribers',
|
||||
'ordering': ['-subscribed_at'],
|
||||
},
|
||||
),
|
||||
]
|
||||
0
at_django_boilerplate/core/migrations/__init__.py
Executable file
0
at_django_boilerplate/core/migrations/__init__.py
Executable file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user