models

package
v0.0.0-...-930d859 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	ID            int       `db:"id" json:"id"`
	UserId        int       `db:"user_id" json:"-"`
	InvoiceType   string    `db:"invoice_type" json:"invoiceType"`
	InvoiceNumber string    `db:"invoice_number" json:"invoiceNumber"`
	OrderName     string    `db:"order_name" json:"orderName"`
	IssueDate     time.Time `db:"issue_date" json:"issueDate"`
	PaymentStatus string    `db:"payment_status" json:"paymentStatus"`
	IsArchived    bool      `db:"is_archived" json:"-"`
	CreatedAt     time.Time `db:"created_at" json:"createdAt"`
	UpdatedAt     time.Time `db:"updated_at" json:"updatedAt"`
}

type User

type User struct {
	ID           int       `db:"id" json:"id"`
	FirstName    string    `db:"first_name" json:"firstName"`
	LastName     string    `db:"last_name" json:"lastName"`
	Email        string    `db:"email" json:"email"`
	Password     string    `db:"password" json:"-"`
	PasswordHash string    `db:"password_hash" json:"-"`
	IsActive     bool      `db:"is_active" json:"isActive"`
	IsAdmin      bool      `db:"is_admin" json:"isAdmin"`
	CreatedAt    time.Time `db:"created_at" json:"createdAt"`
	UpdatedAt    time.Time `db:"updated_at" json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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