add user crud interface in impl

This commit is contained in:
2025-12-18 10:49:56 +02:00
parent 603f007c63
commit 53761db1e0
5 changed files with 190 additions and 0 deletions

11
internal/user/model.go Normal file
View File

@@ -0,0 +1,11 @@
package user
import "gorm.io/gorm"
type User struct {
ID int64 `gorm:"primaryKey"`
Username string `gorm:"uniqueIndex;not null"`
Email string `gorm:"uniqueIndex;not null"`
Password string `gorm:"not null"`
DeletedAt gorm.DeletedAt `gorm:"index"`
}