From 60eb2e7fe5ed3627ad4bd40286df1741529da75b Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Thu, 25 Jan 2024 02:47:26 -0500 Subject: update hooks to more identifiable names, update migrations to work with votes, use a common enum state type --- src/models/boil_types.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/models/boil_types.go') 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, + } +} -- cgit v1.2.3