models

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PaymentsTable string = "payments"
View Source
const UsersTable string = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type Payment

type Payment struct {
	CustomerNumber int       `gorm:"column:customerNumber"`
	CheckNumber    string    `gorm:"column:checkNumber"`
	PaymentDate    time.Time `gorm:"column:paymentDate"`
	Amount         float32   `gorm:"type:decimal(10,2);"`
}

type User

type User struct {
	Id       string `gorm:"column:id"`
	FullName string `gorm:"column:full_name"`
	UserName string `gorm:"column:username"`
	Password string `gorm:"column:password"`
	Role     int    `gorm:"column:role"`
}

Jump to

Keyboard shortcuts

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