Move code to src folder

This commit is contained in:
2026-01-23 20:29:47 +01:00
parent 9481a1bc06
commit 18188ac353
10 changed files with 10 additions and 2 deletions

17
src/models/user.go Normal file
View File

@@ -0,0 +1,17 @@
package models
import (
"time"
"gorm.io/gorm"
)
type User struct {
ID uint `json:"id" gorm:"primaryKey"`
Username string `json:"username" gorm:"unique;not null"`
Email string `json:"email" gorm:"unique;not null"`
Password string `json:"-" gorm:"not null"` // Don't include in JSON responses
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}