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"` +}