entities

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.6.0

type Client struct {
	gorm.Model
	ID       string `gorm:"type:varchar(36);primaryKey;"`
	Email    string `gorm:"type:varchar(320);uniqueIndex"`
	Password string `gorm:"type:varchar(255)"` // private field

	ValidationEmail bool `gorm:"type:boolean;default:false"`
	CGU             bool `gorm:"type:boolean;default:false"`
	Newsletter      bool `gorm:"type:boolean;default:false"`
}

func CreateClient added in v0.6.0

func CreateClient(obj *transfert.Client) (*Client, error)

func (*Client) BeforeCreate added in v0.6.0

func (client *Client) BeforeCreate(tx *gorm.DB) error

func (*Client) BeforeUpdate added in v0.6.0

func (client *Client) BeforeUpdate(tx *gorm.DB) error

func (*Client) CompareHash added in v0.6.0

func (client *Client) CompareHash(password string) bool

Jump to

Keyboard shortcuts

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