mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 23:32:47 +01:00
refactor: remove pocketbase (#1138)
This commit is contained in:
45
app/database/tables.go
Normal file
45
app/database/tables.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package database
|
||||
|
||||
type Table struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
var (
|
||||
TicketsTable = Table{ID: "tickets", Name: "Tickets"}
|
||||
CommentsTable = Table{ID: "comments", Name: "Comments"}
|
||||
LinksTable = Table{ID: "links", Name: "Links"}
|
||||
TasksTable = Table{ID: "tasks", Name: "Tasks"}
|
||||
TimelinesTable = Table{ID: "timeline", Name: "Timeline"}
|
||||
FilesTable = Table{ID: "files", Name: "Files"}
|
||||
TypesTable = Table{ID: "types", Name: "Types"}
|
||||
UsersTable = Table{ID: "users", Name: "Users"}
|
||||
GroupsTable = Table{ID: "groups", Name: "Groups"}
|
||||
ReactionsTable = Table{ID: "reactions", Name: "Reactions"}
|
||||
WebhooksTable = Table{ID: "webhooks", Name: "Webhooks"}
|
||||
|
||||
DashboardCountsTable = Table{ID: "dashboard_counts", Name: "Dashboard Counts"}
|
||||
SidebarTable = Table{ID: "sidebar", Name: "Sidebar"}
|
||||
UserPermissionTable = Table{ID: "user_permissions", Name: "User Permissions"}
|
||||
UserGroupTable = Table{ID: "user_groups", Name: "User Groups"}
|
||||
GroupUserTable = Table{ID: "group_users", Name: "Group Users"}
|
||||
GroupPermissionTable = Table{ID: "group_permissions", Name: "Group Permissions"}
|
||||
GroupParentTable = Table{ID: "group_parents", Name: "Group Parents"}
|
||||
GroupChildTable = Table{ID: "group_children", Name: "Group Children"}
|
||||
|
||||
CreateAction = "create"
|
||||
UpdateAction = "update"
|
||||
DeleteAction = "delete"
|
||||
)
|
||||
|
||||
func Tables() []Table {
|
||||
return []Table{
|
||||
TicketsTable,
|
||||
FilesTable,
|
||||
TypesTable,
|
||||
UsersTable,
|
||||
GroupsTable,
|
||||
ReactionsTable,
|
||||
WebhooksTable,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user