mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 5.2.3 on 2025-10-15 21:54
 | 
						|
 | 
						|
import django.db.models.deletion
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
import counter.models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
    dependencies = [
 | 
						|
        ("club", "0014_alter_club_options_rename_unix_name_club_slug_name_and_more"),
 | 
						|
        ("counter", "0032_scheduledproductaction"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.CreateModel(
 | 
						|
            name="InvoiceCall",
 | 
						|
            fields=[
 | 
						|
                (
 | 
						|
                    "id",
 | 
						|
                    models.AutoField(
 | 
						|
                        auto_created=True,
 | 
						|
                        primary_key=True,
 | 
						|
                        serialize=False,
 | 
						|
                        verbose_name="ID",
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
                (
 | 
						|
                    "is_validated",
 | 
						|
                    models.BooleanField(default=False, verbose_name="is validated"),
 | 
						|
                ),
 | 
						|
                ("month", counter.models.MonthField(verbose_name="invoice date")),
 | 
						|
                (
 | 
						|
                    "club",
 | 
						|
                    models.ForeignKey(
 | 
						|
                        on_delete=django.db.models.deletion.CASCADE, to="club.club"
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
            ],
 | 
						|
            options={
 | 
						|
                "verbose_name": "Invoice call",
 | 
						|
                "verbose_name_plural": "Invoice calls",
 | 
						|
                "constraints": [
 | 
						|
                    models.UniqueConstraint(
 | 
						|
                        fields=("club", "month"),
 | 
						|
                        name="counter_invoicecall_unique_club_month",
 | 
						|
                    )
 | 
						|
                ],
 | 
						|
            },
 | 
						|
        ),
 | 
						|
    ]
 |