chore: trailing slash and associate clients with user

This commit is contained in:
2025-06-09 17:55:51 +01:00
parent 9bc18666ad
commit 4935a65112
9 changed files with 157 additions and 73 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import (
)
type Client struct {
ID uint32 `json:"id" gorm:"primaryKey"`
ID string `json:"id" gorm:"primaryKey"`
UserID string `json:"userId"`
CreatedAt time.Time `json:"createAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"index"`