agendas: new fields in Booking model (#83098)

This commit is contained in:
Lauréline Guérin 2023-11-03 14:42:40 +01:00
parent 6a411b1859
commit 678ac6c1de
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agendas', '0164_alter_bookingcheck_booking'),
]
operations = [
migrations.AddField(
model_name='booking',
name='previous_state',
field=models.CharField(max_length=10, null=True),
),
migrations.AddField(
model_name='booking',
name='request_uuid',
field=models.UUIDField(editable=False, null=True),
),
]

View File

@ -2848,6 +2848,9 @@ class Booking(models.Model):
absence_callback_url = models.URLField(blank=True)
color = models.ForeignKey(BookingColor, null=True, on_delete=models.SET_NULL, related_name='bookings')
request_uuid = models.UUIDField(editable=False, null=True)
previous_state = models.CharField(max_length=10, null=True)
start_time = models.TimeField(null=True)
end_time = models.TimeField(null=True)