PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
package users_models
import "github.com/google/uuid"
type UsersSettings struct {
ID uuid.UUID `json:"id" gorm:"type:uuid;primary_key;default:gen_random_uuid()"`
// means that any user can register via sign up form without invitation
IsAllowExternalRegistrations bool `json:"isAllowExternalRegistrations" gorm:"column:is_allow_external_registrations"`
// means that any user with role MEMBER can invite other users
IsAllowMemberInvitations bool `json:"isAllowMemberInvitations" gorm:"column:is_allow_member_invitations"`
// means that any user with role MEMBER can create their own workspaces
IsMemberAllowedToCreateWorkspaces bool `json:"isMemberAllowedToCreateWorkspaces" gorm:"column:is_member_allowed_to_create_workspaces"`
// means that a password sign-in also has to present a code emailed to the account
IsTwoFactorAuthRequired bool `json:"isTwoFactorAuthRequired" gorm:"column:is_two_factor_auth_required"`
}
func (UsersSettings) TableName() string {
return "users_settings"
}