model

package
v0.0.0-...-5a10bbc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(gapi *governor.API, app string) error

Migrate takes a governor API and app name and migrates models, returns error

Types

type Contact

type Contact struct {
	gorm.Model
	FirstName  string
	LastName   string
	Email      string `gorm:"type:varchar(100);"valid:"email"`
	Message    string
	AddMailing bool `gorm:"default:false;"`
}

Contact holds the minimal data for a web contact.

Jump to

Keyboard shortcuts

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