models

package
v0.0.0-...-54f60d9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateNotifications

func MigrateNotifications(db *gorm.DB) error

Types

type Notification

type Notification struct {
	ID      int64  `json:"id" gorm:"primary_key;autoIncrement"`
	UserID  int64  `json:"user_id"`
	Message string `json:"message"`
	Type    string `json:"type"`
	Status  string `json:"status"`
}

func NewNotification

func NewNotification(userID int64, Type string, message string) *Notification

Jump to

Keyboard shortcuts

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