models

package
v0.0.0-...-fd12d58 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package models contains application specific entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	ID        int       `json:"id"`
	Name      string    `json:"name"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	Email     string    `json:"email"`
}

Driver holds specific application settings linked to an Account.

func (*Driver) BeforeInsert

func (p *Driver) BeforeInsert(db orm.DB) error

BeforeInsert hook executed before database insert operation.

func (*Driver) BeforeUpdate

func (p *Driver) BeforeUpdate(db orm.DB) error

BeforeUpdate hook executed before database update operation.

Jump to

Keyboard shortcuts

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