Discover Packages
github.com/tierklinik-dobersberg/cis-idm
internal
repo
models
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Dec 20, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Address struct {
ID string `mapstructure:"id"`
UserID string `mapstructure:"user_id"`
CityCode string `mapstructure:"city_code"`
CityName string `mapstructure:"city_name"`
Street string `mapstructure:"street"`
}
type EMail struct {
ID string `mapstructure:"id"`
UserID string `mapstructure:"user_id"`
Address string `mapstructure:"address"`
Verified bool `mapstructure:"verified"`
Primary bool `mapstructure:"is_primary"`
Tags []string `mapstructure:"tags"`
}
type Feature struct {
Name string `mapstructure:"name"`
Description string `mapstructure:"description"`
}
type Passkey struct {
ID string `mapstructure:"id"`
UserID string `mapstructure:"user_id"`
Cred string `mapstructure:"cred"`
CredType string `mapstructure:"cred_type"`
ClientName string `mapstructure:"client_name"`
ClientOS string `mapstructure:"client_os"`
ClientDevice string `mapstructure:"client_device"`
}
type PhoneNumber struct {
ID string `mapstructure:"id"`
UserID string `mapstructure:"user_id"`
PhoneNumber string `mapstructure:"phone_number"`
Primary bool `mapstructure:"is_primary"`
Verified bool `mapstructure:"verified"`
Tags []string `mapstructure:"tags"`
}
type RegistrationToken struct {
InitialRoles string `mapstructure:"initial_roles"`
Token string `mapstructure:"token"`
Expires *int64 `mapstructure:"expires"`
AllowedUsage *int64 `mapstructure:"allowed_usage"`
CreatedBy string `mapstructure:"created_by"`
CreatedAt int64 `mapstructure:"created_at"`
}
type RejectedToken struct {
TokenID string `mapstructure:"token_id"`
UserID string `mapstructure:"user_id"`
IssuedAt int64 `mapstructure:"issued_at"`
ExpiresAt int64 `mapstructure:"expires_at"`
}
type Role struct {
ID string `mapstructure:"id"`
Name string `mapstructure:"name"`
Description string `mapstructure:"description"`
DeleteProtected bool `mapstructure:"delete_protected"`
}
type RoleAssignment struct {
UserID string `mapstructure:"user_id"`
RoleID string `mapstructure:"role_id"`
}
type User struct {
ID string `mapstructure:"id"`
Username string `mapstructure:"username"`
DisplayName string `mapstructure:"display_name"`
FirstName string `mapstructure:"first_name"`
LastName string `mapstructure:"last_name"`
Avatar string `mapstructure:"avatar"`
Password string `mapstructure:"password"`
Birthday string `mapstructure:"birthday"`
TOTPSecret string `mapstructure:"totp_secret"`
}
type UserEnabledFeature struct {
FeatureName string `mapstructure:"feature_name"`
UserID string `mapstructure:"user_id"`
}
type Webpush struct {
ID string `mapstructure:"id"`
UserID string `mapstructure:"user_id"`
UserAgent string `mapstructure:"user_agent"`
Endpoint string `mapstructure:"endpoint"`
Auth string `mapstructure:"auth"`
Key string `mapstructure:"key"`
TokenID string `mapstructure:"token_id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.