structs

package
v10.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 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 Follower

type Follower struct {
	Who_id  int
	Whom_id int
}

type Message

type Message struct {
	Message_id int    `gorm:"AUTO_INCREMENT;PRIMARY_KEY"`
	Author_id  int    `gorm:"not null"`
	Text       string `gorm:"not null"`
	Pub_date   string
	Flagged    int
}

type Post

type Post struct {
	Username   string
	Message_id int
	Author_id  int
	Text       string
	Pub_date   string
	Flagged    int
	Image_url  string
}

type User

type User struct {
	User_id   int    `gorm:"AUTO_INCREMENT;PRIMARY_KEY"`
	Username  string `gorm:"not null"`
	Email     string `gorm:"not null"`
	Pw_hash   string `gorm:"not null"`
	Image_url string
}

Jump to

Keyboard shortcuts

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