model

package
v0.0.0-...-8a4f413 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: GPL-3.0 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 {
	ID         int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Content    string    `json:"content"`
	Upvotes    int       `json:"upvotes"`
	Timestamp  time.Time `json:"timestamp"`
	References *int      `json:"references"`
}

Comment is the comment type for our API

Jump to

Keyboard shortcuts

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