Coverage for src/backend/InvenTree/company/migrations/0063_auto_20230502_1956.py: 100%
6 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
1# Generated by Django 3.2.18 on 2023-05-02 19:56
3import InvenTree.fields
4from django.db import migrations, models
5import django.db.models.deletion
8class Migration(migrations.Migration):
10 dependencies = [
11 ('company', '0062_contact_metadata'),
12 ]
14 operations = [
15 migrations.CreateModel(
16 name='Address',
17 fields=[
18 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19 ('title', models.CharField(help_text='Title describing the address entry', max_length=100, verbose_name='Address title')),
20 ('primary', models.BooleanField(default=False, help_text='Set as primary address', verbose_name='Primary address')),
21 ('line1', models.CharField(blank=True, help_text='Address line 1', max_length=50, verbose_name='Line 1')),
22 ('line2', models.CharField(blank=True, help_text='Address line 2', max_length=50, verbose_name='Line 2')),
23 ('postal_code', models.CharField(blank=True, help_text='Postal code', max_length=10, verbose_name='Postal code')),
24 ('postal_city', models.CharField(blank=True, help_text='Postal code city', max_length=50, verbose_name='City')),
25 ('province', models.CharField(blank=True, help_text='State or province', max_length=50, verbose_name='State/Province')),
26 ('country', models.CharField(blank=True, help_text='Address country', max_length=50, verbose_name='Country')),
27 ('shipping_notes', models.CharField(blank=True, help_text='Notes for shipping courier', max_length=100, verbose_name='Courier shipping notes')),
28 ('internal_shipping_notes', models.CharField(blank=True, help_text='Shipping notes for internal use', max_length=100, verbose_name='Internal shipping notes')),
29 ('link', InvenTree.fields.InvenTreeURLField(blank=True, help_text='Link to address information (external)', verbose_name='Link')),
30 ('company', models.ForeignKey(help_text='Select company', on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='company.company', verbose_name='Company')),
31 ],
32 ),
33 ]