add basic auth with uuid-based access tokens

This commit is contained in:
wisplite
2025-08-27 02:42:48 -05:00
parent 8263f9c50a
commit 362d61eb48
6 changed files with 123 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package models
import "time"
type User struct {
ID string `gorm:"primaryKey"`
Username string `gorm:"not null"`
Password string `gorm:"not null"`
IsAdmin bool `gorm:"not null"`
CreatedAt time.Time
UpdatedAt time.Time
}