notification_rules

package
v0.0.0-...-cba5bb6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreAndMarkAlreadyNotified

func IgnoreAndMarkAlreadyNotified(db *gorm.DB, n []common.FileNotification) ([]common.FileNotification, error)

Types

type NotificationForFileVersion

type NotificationForFileVersion struct {
	ID             uint64    `gorm:"primary_key"`
	FileMetadataID uint64    `gorm:"type:bigint not null REFERENCES file_metadata(id) ON DELETE CASCADE"`
	FileVersionID  uint64    `gorm:"type:bigint not null REFERENCES file_versions(id) ON DELETE CASCADE"`
	Count          uint64    `gorm:"type:bigint not null"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type NotificationForUserQuota

type NotificationForUserQuota struct {
	ID        uint64    `gorm:"primary_key"`
	UserID    uint64    `gorm:"type:bigint not null REFERENCES users(id) ON DELETE CASCADE"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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