aboutsummaryrefslogtreecommitdiff
path: root/src/models/boil_types.go
diff options
context:
space:
mode:
authorAlexander Kavon <me+git@alexkavon.com>2024-01-25 02:47:26 -0500
committerAlexander Kavon <me+git@alexkavon.com>2024-01-25 02:47:26 -0500
commit60eb2e7fe5ed3627ad4bd40286df1741529da75b (patch)
treef18d8bbbc3590183333778a4e96bebff187366b2 /src/models/boil_types.go
parent60fd8a68ed87cd7352b490e88ceff3ec21855937 (diff)
update hooks to more identifiable names, update migrations to work with votes, use a common enum state typeHEADtrunk
Diffstat (limited to 'src/models/boil_types.go')
-rw-r--r--src/models/boil_types.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/models/boil_types.go b/src/models/boil_types.go
index f1157ed..dcf3eb2 100644
--- a/src/models/boil_types.go
+++ b/src/models/boil_types.go
@@ -50,3 +50,16 @@ func makeCacheKey(cols boil.Columns, nzDefaults []string) string {
strmangle.PutBuffer(buf)
return str
}
+
+// Enum values for PostableState
+const (
+ PostableStateHidden string = "hidden"
+ PostableStateVisible string = "visible"
+)
+
+func AllPostableState() []string {
+ return []string{
+ PostableStateHidden,
+ PostableStateVisible,
+ }
+}