12 Added notes and colours to customers

This commit is contained in:
2025-07-23 15:35:19 +02:00
parent 84d43f0dac
commit 541b181c87
17 changed files with 362 additions and 20 deletions

View File

@@ -1,6 +1,10 @@
class ReservationSerializer < ActiveModel::Serializer
attributes :id, :start_time, :end_time
attributes :id, :start_time, :end_time, :customer_color_emoji
belongs_to :customer
belongs_to :team, serializer: TeamSerializer
end
def customer_color_emoji
object.customer&.color_emoji || ''
end
end