Skip to content
Snippets Groups Projects
models.go 251 B
Newer Older
  • Learn to ignore specific revisions
  • package db
    
    // User represents a user from the database.
    type User struct {
    	ID        string `json:"id"`
    	Username  string `json:"username"`
    	Email     string `json:"email"`
    	IsAdmin   bool   `json:"is_admin"`
    	IsBlocked bool   `json:"is_blocked"`
    }