summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtsmodel/common.go')
-rw-r--r--internal/gtsmodel/common.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/internal/gtsmodel/common.go b/internal/gtsmodel/common.go
index e740bbb81..6fb415e5f 100644
--- a/internal/gtsmodel/common.go
+++ b/internal/gtsmodel/common.go
@@ -17,8 +17,17 @@
package gtsmodel
+// smallint is the largest size supported
+// by a PostgreSQL SMALLINT, since an SQLite
+// SMALLINT is actually variable in size.
+type smallint int16
+
// enumType is the type we (at least, should) use
-// for database enum types. it is the largest size
-// supported by a PostgreSQL SMALLINT, since an
-// SQLite SMALLINT is actually variable in size.
-type enumType int16
+// for database enum types, as smallest int size.
+type enumType smallint
+
+// bitFieldType is the type we use
+// for database int bit fields, at
+// least where the smallest int size
+// will suffice for number of fields.
+type bitFieldType smallint