models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Id        int
	Title     string `sql:"size:255"`
	Body      string `sql:"size:16777215"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

Structure with page information

func (*Page) Validate

func (page *Page) Validate(v *revel.Validation)

type Revision

type Revision struct {
	Id           int
	PageId       int
	Title        string `sql:"size:255"`
	Body         string `sql:"size:16777215"`
	AddedLines   int
	DeletedLines int
	CreatedAt    time.Time
	DeletedAt    time.Time
}

Structure containing page revision information

Jump to

Keyboard shortcuts

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