This commit is contained in:
2026-02-18 02:17:13 +03:00
commit 8e0419c56b
23 changed files with 642 additions and 0 deletions

10
model/model.go Normal file
View File

@@ -0,0 +1,10 @@
package model
import "time"
type Model struct {
ID uint `json:"id" gorm:"primarykey"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt" gorm:"index"`
}

9
model/user.go Normal file
View File

@@ -0,0 +1,9 @@
package model
type User struct {
Model
Email string `json:"email" gorm:"unique"`
Login string `json:"login" gorm:"unique"`
Password string `json:"-"`
}

14
model/wishlist.go Normal file
View File

@@ -0,0 +1,14 @@
package model
import "time"
type Wishlist struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Description string `json:"description"`
UserID uint `json:"userId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt" gorm:"index"`
}