Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Add log model

Smaug6739af41d9a3d4cc
diff --git a/backend/models/log.model.go b/backend/models/log.model.go
new file mode 100644
index 00000000..8be91f7d
--- /dev/null
+++ b/backend/models/log.model.go
@@ -0,0 +1,11 @@
+package models
+
+type Log struct {
+ Id int64 `json:"id"`
+ UserId int64 `json:"user_id"`
+ IpAddr *string `json:"ip_address"`
+ UserAgent *string `json:"user_agent"`
+ Location string `json:"location"`
+ Type string `json:"type"`
+ Timestamp int64 `json:"timestamp"`
+}