model

package
v0.0.0-...-f66fa89 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: 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 Comment

type Comment struct {
	ID        int64
	UserId    int64
	Comment   string
	PostId    int64
	Likes     int64
	CreatedAt time.Time
}

type FetchedComment

type FetchedComment struct {
	ID              int64
	Comment         string
	Username        string
	User_id         string
	CreatedAt       time.Time
	ParentCommentId int64
	ProfilePicture  sql.NullString
	Path            string
}

type FetchedPosts

type FetchedPosts struct {
	ID             int64
	Description    string
	Username       string
	User_id        string
	CreatedAt      string
	LikeStatus     string
	ProfilePicture sql.NullString
	PostMedia      []PostMedia
}

type Follower

type Follower struct {
	ID        int64
	Follower  int64
	Following int64
	CreatedAt time.Time
}

type ListOfFollowers

type ListOfFollowers struct {
	FollowerId     int64
	UserId         int64
	Username       string
	ProfilePicture sql.NullString
}

type Post

type Post struct {
	ID          int64
	UserId      int64
	Description string
	Location    string
	CreatedAt   time.Time
}

type PostMedia

type PostMedia struct {
	Id      sql.NullString
	FileUrl sql.NullString
}

type PostModel

type PostModel struct {
	ID             int64
	Description    string
	Username       string
	User_id        string
	CreatedAt      time.Time
	ProfilePicture sql.NullString
}

type User

type User struct {
	ID        int64
	Username  string
	Email     string
	Phone     string
	Password  string
	FirstName string
	LastName  string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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