models

package
v0.0.0-...-f488868 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Sql *gorm.DB

Functions

func InitDB

func InitDB()

Types

type Notification

type Notification struct {
	ID        uint           `gorm:"primaryKey" json:"id"`
	Sender    string         `json:"sender"`
	Receiver  string         `json:"receiver"`
	Body      string         `json:"body"`
	Channel   string         `json:"channel"`
	Address   string         `json:"address"`
	CreatedAt time.Time      `json:"createdAt"`
	UpdateAt  time.Time      `json:"updateAt"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"`
}

Jump to

Keyboard shortcuts

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