domain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spending

type Spending struct {

	// Id represents the unique identifier of a user's spending history.
	// It is formatted as a UUID4.
	Id string `dynamodbav:"Id"`

	// UserId represents the unique identifier of the user who made
	// the spending. It is formatted as a UUID4
	UserId string `dynamodbav:"UserId"`

	// Title represents the title or name associated with user's spending.
	Title string `dynamodbav:"Title"`

	// Description represents additional details or notes regarding
	// a user's spending.
	Description string `dynamodbav:"Description"`

	// Amount represents the spending amount. It is used to store the
	// monetary value of a user's spending.
	Amount float64 `dynamodbav:"Amount"`

	// Date represents the date when a spending was done, stored in
	// Unix time format. It is used to store the timestamp of when
	// the spending occurred.
	Date int64 `dynamodbav:"Date"`

	// Category represents the spending category chosen by the user.
	Category string `dynamodbav:"Category"`

	// CreatedAt represents the date and time when the spending data
	// was created, stored in Unix time format. It is used to store
	// the timestamp of when the spending data was initially recorded.
	CreatedAt int64 `dynamodbav:"CreatedAt"`
}

Spending represent the spending history data structure.

type User

type User struct {
	Id        string `dynamodbav:"Id"`
	Name      string `dynamodbav:"Name"`
	Email     string `dynamodbav:"Email"`
	Password  string `dynamodbav:"Password"`
	CreatedAt int64  `dynamodbav:"CreatedAt"`
}

Jump to

Keyboard shortcuts

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