moved Users from models to domain

This commit is contained in:
2024-12-30 15:46:18 +01:00
parent 18a4bdf940
commit 0e9fde5fe2
3 changed files with 16 additions and 14 deletions
+14
View File
@@ -0,0 +1,14 @@
package user
import (
"time"
)
type User struct {
UserID uint `gorm:"primaryKey" json:"id"`
Username string `gorm:"unique" json:"name"`
PasswordHash string `json:"password"`
Email string `gorm:"unique" json:"email"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}