model

package
v0.0.0-...-9c57d75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	gorm.Model

	Uuid        pgtype.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Name        string
	Description pgtype.Text `gorm:"type:text"`
	Attributes  pgtype.JSONB
}

type Person

type Person struct {
	gorm.Model

	Uuid           pgtype.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	GivenName      string
	FamilyName     string
	NickName       string
	AdditionalName string
	BirthDate      pgtype.Date
	BirthPlace     string
	DeathDate      pgtype.Date
	DeathPlace     string
}

type Realm

type Realm struct {
	gorm.Model

	Uuid        pgtype.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Name        string
	Description pgtype.Text `gorm:"type:text"`
	Attributes  pgtype.JSONB
}

type Role

type Role struct {
	gorm.Model

	Uuid        pgtype.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Realm       string
	Name        string
	Description pgtype.Text `gorm:"type:text"`
	Attributes  pgtype.JSONB
}

type User

type User struct {
	gorm.Model

	Uuid               pgtype.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Name               string
	Realm              string
	Email              string
	Password           string
	LastPasswordChange pgtype.Timestamptz
	LastLogin          pgtype.Timestamptz
	LastActive         pgtype.Timestamptz
	ActivatedAt        pgtype.Timestamptz
	Attributes         pgtype.JSONB
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL