Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct {
ID uuid.UUID `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
AuthorID uuid.UUID `json:"author_id"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Blog represents a blog row (pgx scanning).
type Permission ¶
Permission is a named capability (codename), similar to Django auth.Permission.
type User ¶
type User struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
PasswordHash string `json:"password_hash,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsActive bool `json:"is_active"`
IsSuperuser bool `json:"is_superuser"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
User represents a user row (pgx scanning).
Click to show internal directories.
Click to hide internal directories.