This commit is contained in:
2025-08-22 14:33:01 +02:00
parent b168d647da
commit 66240aa9f2

View File

@@ -0,0 +1,22 @@
module datamodel
@[heap]
pub struct Reservation {
pub mut:
id u32
customer_id u32 //links back to customer for this capacity
compute_slices []u32
storage_slices []u32
status ReservationStatus
obligation bool //if obligation then will be charged and money needs to be in escrow, otherwise its an intent
start_date u32 //epoch
end_date u32
}
pub enum ReservationStatus {
pending
confirmed
assigned
cancelled
done
}