You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
# Generated by Django 4.2.5 on 2024-02-23 19:35
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
import django.db.models.deletion
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('billing', '0002_service_active_service_cancelled_at_and_more'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.CreateModel(
 | 
						|
            name='Payment',
 | 
						|
            fields=[
 | 
						|
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
						|
                ('name', models.CharField(max_length=100)),
 | 
						|
            ],
 | 
						|
        ),
 | 
						|
        migrations.CreateModel(
 | 
						|
            name='ServicePayment',
 | 
						|
            fields=[
 | 
						|
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
						|
                ('amount', models.DecimalField(decimal_places=3, max_digits=5)),
 | 
						|
                ('date_paid', models.DateField()),
 | 
						|
                ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.service')),
 | 
						|
                ('type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='billing.payment')),
 | 
						|
            ],
 | 
						|
        ),
 | 
						|
    ]
 |