models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	City       string `dbfusion:"city"`
	PostalCode string `dbfusion:"postCode"`
	Line1      string `dbfusion:"line1"`
}

type NonEntityUserTest

type NonEntityUserTest struct {
	FirstName string `dbfusion:"firstname"`
	Email     string `dbfusion:"email,index:hash"`
	Username  string `dbfusion:"username"`
	Password  string `dbfusion:"password"`
	CreatedAt int64  `dbfusion:"createdAt"`
	UpdatedAt int64  `dbfusion:"updatedAt"`
}

func (NonEntityUserTest) GetCacheIndexes

func (ne NonEntityUserTest) GetCacheIndexes() []string

type UseWithAddress

type UseWithAddress struct {
	FirstName string   `dbfusion:"firstname"`
	Email     string   `dbfusion:"email"`
	Username  string   `dbfusion:"username"`
	Password  string   `dbfusion:"password"`
	Address   Address  `dbfusion:"address"`
	Vehicles  Vehicles `dbfusion:"cars,omitempty"`
	CreatedAt int64    `dbfusion:"createdAt,omitempty"`
	UpdatedAt int64    `dbfusion:"updatedAt"`
}

type UserTest

type UserTest struct {
	FirstName string `dbfusion:"firstname"`
	Email     string `dbfusion:"email"`
	Username  string `dbfusion:"username"`
	Password  string `dbfusion:"password"`
	CreatedAt int64  `dbfusion:"createdAt"`
	UpdatedAt int64  `dbfusion:"updatedAt"`
}

func (UserTest) GetCacheIndexes

func (ne UserTest) GetCacheIndexes() []string

func (UserTest) GetEntityName

func (u UserTest) GetEntityName() string

func (UserTest) PostInsert

func (u UserTest) PostInsert() hooks.PostInsert

func (UserTest) PreInsert

func (u UserTest) PreInsert() hooks.PreInsert

type Vehicles

type Vehicles struct {
	Vehicles []string `dbfusion:"vehicles"`
}

Jump to

Keyboard shortcuts

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