model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Author: Daniel TAN Date: 2021-10-02 01:20:48 LastEditors: Daniel TAN LastEditTime: 2021-10-04 00:57:40 FilePath: /trinity-micro/example/crud/internal/application/model/user.go Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID   uint64
	Code string
	Name string
}

type Order

type Order struct {
	ID           uint64
	Code         string
	UserID       uint64
	User         *User
	OrderDetails []OrderDetail
	Total        string
}

type OrderDetail

type OrderDetail struct {
	ID       uint64
	Code     string
	PriceID  uint64
	Quantity int
	Total    string
}

type Price

type Price struct {
	ID     uint64
	ItemID uint64
	Item   *Item
	Price  int
}

type User

type User struct {
	ID       uint64
	Username string
	Password string
	Email    string
	Age      uint
	Gender   uint
	// Orders    []Order
	CreatedBy uint64
}

Jump to

Keyboard shortcuts

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