Discover Packages
github.com/inari111/money-transfer
infra
persistence
mysql
package
Version:
v0.0.0-...-d91fea5
Opens a new window with list of versions in this module.
Published: Apr 7, 2019
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Money struct {
ID int64 `db:"id, primarykey"`
UserID int64 `db:"user_id"`
Amount int64 `db:"amount"`
UpdatedAt time .Time `db:"updated_at"`
}
type Transfer struct {
ID int64 `db:"id, primarykey"`
SrcUserID string `db:"src_user_id"`
DestUserID string `db:"dest_user_id"`
Amount uint64 `db:"amount"`
CreatedAt time .Time `db:"created_at"`
}
type User struct {
ID int64 `db:"id, primarykey, autoincrement"`
Name string `db:"name"`
Age int `db:"age"`
CreatedAt time .Time `db:"created_at"`
UpdatedAt time .Time `db:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.