models

package
v0.0.0-...-6c3db50 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID        uint   `gorm:"primaryKey" json:"id"`
	UserID    uint   `gorm:"not null" json:"user_id"`
	Name      string `gorm:"not null" json:"name"`
	Priority  uint   `gorm:"not null" json:"priority"`
	Recurrent bool   `json:"recurrent"`
	Notify    bool   `json:"notify"`
}

type MailSender

type MailSender struct {
	Host     string
	Port     string
	Username string
	Password string
}

func (*MailSender) SendMail

func (ms *MailSender) SendMail(reciever []string, subject string, body string) error

type Payment

type Payment struct {
	ID          uint      `gorm:"primaryKey" json:"id"`
	UserID      uint      `gorm:"not null" json:"user_id"`
	NetAmount   float64   `json:"net_amount"`
	GrossAmount float64   `json:"gross_amount"`
	Deductible  float64   `json:"deductible"`
	Name        string    `gorm:"not null" json:"name"`
	Type        string    `gorm:"not null" json:"type"`
	Date        time.Time `gorm:"not null" json:"date"`
	Recurrent   bool      `gorm:"not null" json:"recurrent"`
	Paid        bool      `gorm:"not null" json:"paid"`
}

type User

type User struct {
	ID       uint   `gorm:"primaryKey" json:"id"`
	Name     string `gorm:"not null" json:"name"`
	Username string `json:"username"`
	Email    string `gorm:"not null;unique" json:"email"`
	Password string `gorm:"not null" json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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