From 66240aa9f27b022bf23440aacda2035283d4dcb1 Mon Sep 17 00:00:00 2001 From: despiegk Date: Fri, 22 Aug 2025 14:33:01 +0200 Subject: [PATCH] ... --- lib/threefold/grid4/datamodel/model_bid.v | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/threefold/grid4/datamodel/model_bid.v diff --git a/lib/threefold/grid4/datamodel/model_bid.v b/lib/threefold/grid4/datamodel/model_bid.v new file mode 100644 index 00000000..85639d9c --- /dev/null +++ b/lib/threefold/grid4/datamodel/model_bid.v @@ -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 +} \ No newline at end of file