routes created, users controllers, user_repository, model users.go, main.go

This commit is contained in:
2024-03-20 12:37:59 +00:00
commit 9f539f847c
8 changed files with 213 additions and 0 deletions

15
models/users.go Normal file
View File

@@ -0,0 +1,15 @@
package models
import (
"time"
)
type User struct {
ID uint `gorm:"primary_key"`
Name string
LastName string
Email string
Password string `gorm:"not null"`
CreatedAt time.Time
UpdatedAt time.Time
}