Files
api/app/migrations/0070_customer_contact.py
2025-12-30 11:27:14 +07:00

28 lines
991 B
Python

# Generated by Django 5.1.7 on 2025-05-31 03:03
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0069_contact'),
]
operations = [
migrations.CreateModel(
name='Customer_Contact',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('info', models.CharField(max_length=100, null=True)),
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
('contact', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.contact')),
('ref', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='custcontact', to='app.customer')),
],
options={
'db_table': 'customer_contact',
},
),
]