model

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithUnread

func WithUnread() utils.Scope

Types

type Message

type Message struct {
	ID          uint64       `gorm:"primaryKey"`
	CreatedAt   time.Time    `gorm:"autoCreateTime"`
	UpdateAt    time.Time    `gorm:"autoUpdateTime"`
	Unread      sql.NullBool `gorm:"default:true"`
	UserID      string       `gorm:"not null;index"`
	Timestamp   time.Time    `gorm:"not null;index"`
	MessageType message.MessageType
	Title       string `gorm:"type:VARCHAR(255)"`
	Content     string `gorm:"type:TEXT"`
}

Jump to

Keyboard shortcuts

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