34 lines
1.3 KiB
Python
34 lines
1.3 KiB
Python
# Generated by Django 5.2.8 on 2025-12-09 03:18
|
|
|
|
import django.db.models.deletion
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('teams_app', '0003_add_team_type'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='TeamAddress',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('uuid', models.CharField(default=uuid.uuid4, max_length=100, unique=True)),
|
|
('name', models.CharField(max_length=255)),
|
|
('address', models.TextField()),
|
|
('latitude', models.FloatField(blank=True, null=True)),
|
|
('longitude', models.FloatField(blank=True, null=True)),
|
|
('is_default', models.BooleanField(default=False)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='teams_app.team')),
|
|
],
|
|
options={
|
|
'db_table': 'teams_address',
|
|
},
|
|
),
|
|
]
|