From 0cb619709c26db974eff0d42d6b67f55103542a3 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 18:45:44 +0900 Subject: [PATCH] initial commits --- ent/polloption.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ent/polloption.go diff --git a/ent/polloption.go b/ent/polloption.go new file mode 100644 index 0000000..0c1fad2 --- /dev/null +++ b/ent/polloption.go @@ -0,0 +1,12 @@ +package ent + +import ( + "sourcecode.social/reiver/go-jsonint" + "sourcecode.social/reiver/go-opt" + "sourcecode.social/reiver/go-nul" +) + +type PollOption struct { + Title opt.Optional[string] `json:"title"` + VotesCount nul.Nullable[jsonint.Int] `json:"votes_count"` +}