feat: users & authentication implementation

This commit is contained in:
Florian Sylvain committed 2023-08-07 12:31:29 +02:00
1 parent e258dccc1c
commit f33f53ca76
15 files changed
+550 -18

No files matched your search

@@ -0,0 +1,16 @@
package models
import (
"gorm.io/gorm"
"time"
)
type User struct {
gorm.Model
ID uint32 `gorm:"primaryKey;autoIncrement"`
Username string `gorm:"unique;not null"`
Password string `gorm:"not null"`
Email string `gorm:"unique;not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}