models

package
v0.0.0-...-a5bbee6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2015 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID        uint `gorm:"primary_key"`
	Username  string
	Password  string
	Name      string
	Avatar    string
	Actived   bool
	CreatedAt time.Time
	UpdateAt  time.Time
	DeletedAt *time.Time
}

type Event

type Event struct {
	ID        uint `gorm:"primary_key"`
	Name      string
	Content   string `sql:"size:1024"`
	Due       time.Time
	AccountId uint
	CreatedAt time.Time
	UpdateAt  time.Time
	DeletedAt *time.Time
}

func (*Event) GetUser

func (event *Event) GetUser(db gorm.DB) Account

type Follow

type Follow struct {
	ID        uint `gorm:"primary_key"`
	AccountId uint
	FollowId  uint
	CreatedAt time.Time
	UpdateAt  time.Time
	DeletedAt *time.Time
}

Jump to

Keyboard shortcuts

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