models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const OBJECT_NAME_RECIPEINT string = "Recipient"
View Source
const TABLE_NAME_RECIPEINT string = "recipients"

Variables

This section is empty.

Functions

This section is empty.

Types

type Recipient

type Recipient struct {
	*database.PowerPivot

	Email string `gorm:"column:email" json:"email"`
	Phone string `gorm:"column:phone" json:"phone"`

	//common fields
	OwnerID   object.NullString `gorm:"column:owner_id;not null;index:owner_id" json:"ownerID"`
	OwnerType string            `gorm:"column:owner_type" json:"ownerType"`
}

func NewRecipient

func NewRecipient(mapObject *object.Collection) *Recipient

func (*Recipient) GetForeignKey

func (mdl *Recipient) GetForeignKey() string

func (*Recipient) GetID

func (mdl *Recipient) GetID() int32

func (*Recipient) GetPrimaryKey

func (mdl *Recipient) GetPrimaryKey() string

func (*Recipient) GetTableName

func (mdl *Recipient) GetTableName(needFull bool) string

func (*Recipient) GetUUID

func (mdl *Recipient) GetUUID() string

func (*Recipient) TableName

func (mdl *Recipient) TableName() string

TableName overrides the table name used by User to `profiles`

Jump to

Keyboard shortcuts

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