context demo.order

type Status = enum {
	Open,
	Closed,
}

type Id = String where Matches("[a-z0-9]{1,8}")

agent Order {
	key id: Id

	store status: Cell[Status]

	on call current() -> Effect[Status] {
		status
	}
}
