model

package
v0.0.0-...-47b434b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LikeAction    = "like"
	CommentAction = "comment"
	FollowAction  = "follow"
)
View Source
const MaxLimitPasswordResetPerDay = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID        int64
	UserName  string
	PostingID int64
	Comment   string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Follow

type Follow struct {
	ID                int64
	FollowingUserName string
	FollowedUserName  string
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

type Like

type Like struct {
	ID        int64
	UserName  string
	PostingID int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Notification

type Notification struct {
	ID          int64
	VisitorName string
	VisitedName string
	Action      string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type Posting

type Posting struct {
	ID         int64
	UserName   string
	Title      string
	ImageURL   string
	LikedCount int64
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type User

type User struct {
	Name                      string
	Email                     string
	Password                  string
	Icon                      string
	SelfIntroduction          string
	PostingCount              int64 // int64 because of openapi-generator
	LikeCount                 int64 // int64 because of openapi-generator
	LikedCount                int64 // int64 because of openapi-generator
	FollowCount               int64 // int64 because of openapi-generator
	FollowedCount             int64 // int64 because of openapi-generator
	ActivationKey             string
	EmailVerified             bool
	PasswordResetEmailCount   uint8
	PasswordResetKey          string
	PasswordResetKeyExpiresAt time.Time
	CreatedAt                 time.Time
	UpdatedAt                 time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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