models

package
v0.0.0-...-e68236f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 1 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 {
	CommentId string    `gorm:"primaryKey;type:varchar(36);" json:"commentId"`
	PostId    string    `gorm:"type:varchar(36);index;" json:"postId"`
	Comments  string    `gorm:"type:text;" json:"comments"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type Comments

type Comments []Comment

type Post

type Post struct {
	PostId    string    `gorm:"primaryKey;type:varchar(36);" json:"postId"`
	UserId    string    `gorm:"type:varchar(36);index;" json:"userId"`
	Contents  string    `gorm:"type:text;" json:"contents"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type Posts

type Posts []Post

Jump to

Keyboard shortcuts

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