type Timestamp struct {
CreatedAt time.Time `gorm:"type:timestamp with time zone" json:"created_at"`
UpdatedAt time.Time `gorm:"type:timestamp with time zone" json:"updated_at"`
DeletedAt gorm.DeletedAt}
type Transaksi struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;default:uuid_generate_v4()" json:"id"`
UserID string `json:"user_id"`
Name string `json:"name"`
Type string `json:"type"`
Amount int `json:"amount"`
Notes string `json:"notes"`
User *User `gorm:"foreignKey:UserID"`
Timestamp}
type User struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;default:uuid_generate_v4()" json:"id"`
Name string `json:"name"`
TelpNumber string `json:"telp_number"`
Email string `json:"email"`
Password string `json:"password"`
Role string `json:"role"`
Timestamp}