Replace hidden flag with post state.
CI / test (pull_request) Successful in 6m16s

Store post state as text so Go owns the allowed values and future states such as locked remain representable without a database enum migration.
This commit is contained in:
2026-08-27 00:37:17 -07:00
parent e918e5bd1d
commit b481dd2925
9 changed files with 372 additions and 104 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ type Post struct {
Body string
City string
PostDate string
Hidden int32
PostState string
CreatedAt string
UpdatedAt string
}