暫無描述

0023_place.py 892B

1234567891011121314151617181920212223242526
  1. # Generated by Django 3.2.5 on 2021-07-18 17:29
  2. from django.db import migrations, models
  3. import django_google_maps.fields
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('backend', '0022_auto_20210719_0024'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Place',
  11. fields=[
  12. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('address', django_google_maps.fields.AddressField(max_length=200)),
  14. ('geolocation', django_google_maps.fields.GeoLocationField(max_length=100)),
  15. ('created_at', models.DateTimeField(auto_now_add=True, null=True)),
  16. ('updated_at', models.DateTimeField(auto_now=True)),
  17. ('more_info', models.JSONField(blank=True, null=True)),
  18. ],
  19. ),
  20. ]