This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/invoices/migrations/0004_invoicefile.py

55 lines
1.6 KiB
Python

# Generated by Django 5.1.6 on 2025-03-03 13:39
import django.db.models.deletion
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
(
'invoices',
'0003_alter_invoice_customer_alter_invoice_customer_data_and_more',
),
]
operations = [
migrations.CreateModel(
name='InvoiceFile',
fields=[
(
'id',
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID',
),
),
(
'file',
models.FileField(
blank=True,
null=True,
upload_to='invoice-files',
verbose_name='File',
),
),
(
'created_date',
models.DateTimeField(auto_now=True, verbose_name='Created Date'),
),
(
'invoice',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name='files',
to='invoices.invoice',
),
),
],
options={
'verbose_name': 'Invoice File',
'verbose_name_plural': 'Invoice Files',
},
),
]