model

package
v0.0.0-...-b1a012a Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConectionDB

type ConectionDB struct {
	DB *gorm.DB
}

func (*ConectionDB) Close

func (d *ConectionDB) Close()

func (*ConectionDB) Migrate

func (d *ConectionDB) Migrate(models interface{})

func (*ConectionDB) Open

func (c *ConectionDB) Open()

func (*ConectionDB) Seed

func (d *ConectionDB) Seed(models interface{})

type Events

type Events struct {
	gorm.Model
	CompanyID       int32     `json:"company_id"`
	ScriptID        int32     `json:"script_id"`
	ScriptVersionID int32     `json:"script_version_id"`
	ClientVersion   string    `json:"client_version"`
	UserID          string    `json:"user_id"`
	SessionID       string    `json:"session_id"`
	Event           string    `json:"event"`
	Time            time.Time `json:"time"`
	Mobile          string    `json:"mobile"`
	Referrer        string    `json:"referrer"`
	Location        string    `json:"location"`
	ScriptName      string    `json:"script_name"`
	AnalyticChannel string    `json:"analytic_channel"`
	Score           int32     `json:"score"`
}

func NewEvents

func NewEvents() *Events

func (*Events) Save

func (e *Events) Save() error

Jump to

Keyboard shortcuts

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