academon/core/migrations/0003_vessel_profile.py
2022-09-16 15:40:15 +00:00

33 lines
1.2 KiB
Python

# Generated by Django 4.1.1 on 2022-09-16 15:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_alter_user_totp'),
]
operations = [
migrations.CreateModel(
name='Vessel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=64)),
('imo', models.IntegerField(blank=True, null=True)),
('mmsi', models.IntegerField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='Profile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=128)),
('last_name', models.CharField(max_length=128)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]