18 lines
356 B
Go
18 lines
356 B
Go
package models
|
|
|
|
type User struct {
|
|
ID string `json:"id"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Role string `json:"role"`
|
|
}
|
|
|
|
type Expense struct {
|
|
ID string `json:"id"`
|
|
Amount int `json:"amt"`
|
|
Description string `json:"desc"`
|
|
|
|
Payer User `json:"payer"`
|
|
Debtors []User `json:"debtors"`
|
|
}
|