model

package
v0.0.0-...-02a6cbf Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	RecipientID int64 `gorm:"primaryKey" json:"recipient_id"`
	VideoID     int64 `gorm:"primaryKey" json:"video_id"`
	LpHits      int64 `gorm:"not null;default:0" json:"lp_hits"`
	VideoPlays  int64 `gorm:"not null;default:0" json:"video_plays"`
}

Event is a database object containing events infomation

type Recipient

type Recipient struct {
	ID    int64  `gorm:"primaryKey" json:"id" binding:"eq=0"`
	Name  string `gorm:"not null" json:"name" binding:"required,min=2"`
	Email string `json:"email"`
	Phone string `gorm:"index:idx_recipient_phone" json:"phone" binding:"numeric,min=8,max=15"`
}

Recipient is a database object containing recipients information

type Video

type Video struct {
	ID          int64  `gorm:"primaryKey" json:"id"`
	CompanyName string `json:"company_name"`
}

Video is a database object containing videos information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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