mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
56 lines
1.8 KiB
Python
56 lines
1.8 KiB
Python
|
# Generated by Django 3.2.15 on 2022-11-14 13:26
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import django_countries.fields
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
("counter", "0018_producttype_priority"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="BillingInfo",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("first_name", models.CharField(max_length=30)),
|
||
|
("last_name", models.CharField(max_length=30)),
|
||
|
(
|
||
|
"address_1",
|
||
|
models.CharField(max_length=50, verbose_name="address line 1"),
|
||
|
),
|
||
|
(
|
||
|
"address_2",
|
||
|
models.CharField(
|
||
|
blank=True,
|
||
|
max_length=50,
|
||
|
null=True,
|
||
|
verbose_name="address line 2",
|
||
|
),
|
||
|
),
|
||
|
("zip_code", models.CharField(max_length=16, verbose_name="zip code")),
|
||
|
("city", models.CharField(max_length=50, verbose_name="city")),
|
||
|
("country", django_countries.fields.CountryField(max_length=2)),
|
||
|
(
|
||
|
"customer",
|
||
|
models.OneToOneField(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
related_name="billing_infos",
|
||
|
to="counter.customer",
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
]
|