poli_planning/polyclinic_scheduling/apps/polyclinic/migrations/0001_initial.py

31 lines
1.3 KiB
Python
Raw Normal View History

2020-05-13 15:54:40 +02:00
# Generated by Django 3.0.6 on 2020-05-13 13:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('hospital', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Polyclinic',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True, help_text='The date and time this model has been created', verbose_name='Date created')),
('updated_at', models.DateTimeField(auto_now=True, help_text='The date and time this model has been updated', verbose_name='Date updated')),
('name', models.CharField(blank=True, help_text='The name of this polyclinic', max_length=200, verbose_name='Name')),
('phone', models.CharField(blank=True, help_text='The general/direct phone number of this polyclinic', max_length=18, verbose_name='Phone number')),
('hospital', models.ForeignKey(help_text='To which hospital belongs this polyclinic', on_delete=django.db.models.deletion.CASCADE, to='hospital.Hospital')),
],
options={
'abstract': False,
},
),
]