models

package
v0.0.0-...-24badab Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 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 Feedback

type Feedback struct {
	ID             uint   `grom:"primaryKey" json:"id"`
	Subject        string `gorm:"size:60;not null" json:"subject"`
	Description    string `gorm:"not null" json:"Description"`
	OS             string `grom:"size:40;not null" json:"os"`
	Browser        string `gorm:"size:40;not null" json:"browser"`
	BrowserVersion string `gorm:"size:20;not null" json:"browser_version"`
	WebsiteID      string `gorm:"size:36;not null" json:"website_id"`
}

func (*Feedback) Validate

func (f *Feedback) Validate() error

type Website

type Website struct {
	ID       string     `grom:"size:36;primaryKey" json:"id"`
	Name     string     `gorm:"size:40;not null" json:"name"`
	Url      string     `gorm:"size:255" json:"url"`
	Feedback []Feedback `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"feedback"`
}

func (*Website) BeforeCreate

func (w *Website) BeforeCreate(tx *gorm.DB) error

func (*Website) Validate

func (w *Website) Validate() error

Jump to

Keyboard shortcuts

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