|
| 1 | +# Generated by Django 5.2.7 on 2025-11-05 11:26 |
| 2 | + |
| 3 | +import django.db.models.deletion |
| 4 | +import django.utils.timezone |
| 5 | +from django.db import migrations, models |
| 6 | + |
| 7 | + |
| 8 | +class Migration(migrations.Migration): |
| 9 | + |
| 10 | + initial = True |
| 11 | + |
| 12 | + dependencies = [ |
| 13 | + ('guests', '0004_alter_checkin_aadhaar_card_alter_checkin_mobile_and_more'), |
| 14 | + ] |
| 15 | + |
| 16 | + operations = [ |
| 17 | + migrations.CreateModel( |
| 18 | + name='Billing', |
| 19 | + fields=[ |
| 20 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 21 | + ('room_service', models.DecimalField(decimal_places=2, max_digits=10)), |
| 22 | + ('food', models.DecimalField(decimal_places=2, max_digits=10)), |
| 23 | + ('bottles', models.DecimalField(decimal_places=2, max_digits=10)), |
| 24 | + ('inroom_facilities', models.DecimalField(decimal_places=2, max_digits=10)), |
| 25 | + ('miscellaneous', models.DecimalField(decimal_places=2, max_digits=10)), |
| 26 | + ('total', models.DecimalField(decimal_places=2, default=0, editable=False, max_digits=12)), |
| 27 | + ('date', models.DateTimeField(default=django.utils.timezone.now)), |
| 28 | + ('check_in', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bills', to='guests.checkin')), |
| 29 | + ('check_out', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='bill', to='guests.checkout')), |
| 30 | + ], |
| 31 | + ), |
| 32 | + ] |
0 commit comments