models

package
v0.0.0-...-dfcdf7c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditCardApplication

type CreditCardApplication struct {
	ID                   uint      `gorm:"primary_key"`
	FirstName            string    `json:"firstName"`
	LastName             string    `json:"lastName"`
	DateOfBirth          time.Time `json:"dateOfBirth"`
	PhoneNumber          string    `json:"phoneNumber"`
	SocialSecurityNumber string    `json:"socialSecurityNumber"`
	EmploymentType       string    `json:"employmentType"`
	Occupation           string    `json:"occupation"`
	MonthlyIncome        float64   `json:"monthlyIncome"`
	YearsEmployed        int       `json:"yearsEmployed"`
	StreetAddress        string    `json:"streetAddress"`
	YearsAtAddress       int       `json:"yearsAtAddress"`
	City                 string    `json:"city"`
	State                string    `json:"state"`
	Zip                  string    `json:"zip"`
	Country              string    `json:"country"`
	Ownership            string    `json:"ownership"`
	MonthlyPayment       float64   `json:"monthlyPayment"`
	CardName             string    `json:"cardName"`
	CardType             string    `json:"cardType"`
	Branch               string    `json:"branch"`
	CardBranding         string    `json:"cardBranding"`
	CreatedAt            time.Time
	UpdatedAt            time.Time
	DeletedAt            time.Time
}

CreditCardApplication - handles the ORM of CreditCardApplication table and the response of gRPC services

type CreditCards

type CreditCards struct {
	ID          uint   `gorm:"primary_key"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phoneNumber"`
	Address     string `json:"address"`
	Country     string `json:"country"`
	City        string `json:"city"`
	Zip         string `json:"zip"`
	CVV         string `json:"CVV"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   time.Time
}

CreditCards - handles the ORM of CreditCards table and the response of gRPC services

type User

type User struct {
	gorm.Model
	Name        string `json:"name" form:"name"`
	Email       string `json:"email" form:"email"`
	PhoneNumber string `json:"phoneNumber" form:"phoneNumber"`
}

User - handles the ORM of Users table and the response of gRPC services

Jump to

Keyboard shortcuts

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