Tag CRUD APIs

This commit is contained in:
abhishek9686
2024-09-17 19:34:45 +04:00
parent 2e7d9ad826
commit d64f098181
7 changed files with 278 additions and 31 deletions
+3
View File
@@ -67,6 +67,8 @@ const (
PENDING_USERS_TABLE_NAME = "pending_users"
// USER_INVITES - table for user invites
USER_INVITES_TABLE_NAME = "user_invites"
// TAG_TABLE_NAME - table for tags
TAG_TABLE_NAME = "tags"
// == ERROR CONSTS ==
// NO_RECORD - no singular result found
NO_RECORD = "no result found"
@@ -152,6 +154,7 @@ func createTables() {
CreateTable(PENDING_USERS_TABLE_NAME)
CreateTable(USER_PERMISSIONS_TABLE_NAME)
CreateTable(USER_INVITES_TABLE_NAME)
CreateTable(TAG_TABLE_NAME)
}
func CreateTable(tableName string) error {