25 lines
740 B
Python
25 lines
740 B
Python
|
# Generated by Django 5.0.2 on 2024-02-28 20:03
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
import uuid
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('api_v1', '0003_createdLocationModel'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Cafeteria',
|
||
|
fields=[
|
||
|
('cafeteria_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
('name', models.CharField(max_length=50)),
|
||
|
('website', models.URLField()),
|
||
|
('location', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, to='api_v1.location')),
|
||
|
],
|
||
|
),
|
||
|
]
|