wip: recurring transactions
This commit is contained in:
40
types/transaction_recurring.go
Normal file
40
types/transaction_recurring.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type TransactionRecurring struct {
|
||||
Id uuid.UUID
|
||||
UserId uuid.UUID `db:"user_id"`
|
||||
|
||||
IntervalMonths int64 `db:"interval_months"`
|
||||
LastExecution *time.Time `db:"last_execution"`
|
||||
Active bool
|
||||
|
||||
Party string
|
||||
Description string
|
||||
|
||||
AccountId *uuid.UUID `db:"account_id"`
|
||||
TreasureChestId *uuid.UUID `db:"treasure_chest_id"`
|
||||
Value int64
|
||||
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
CreatedBy uuid.UUID `db:"created_by"`
|
||||
UpdatedAt *time.Time `db:"updated_at"`
|
||||
UpdatedBy *uuid.UUID `db:"updated_by"`
|
||||
}
|
||||
|
||||
type TransactionRecurringInput struct {
|
||||
Id string
|
||||
IntervalMonths string
|
||||
LastExecution string
|
||||
Active string
|
||||
Party string
|
||||
Description string
|
||||
AccountId string
|
||||
TreasureChestId string
|
||||
Value string
|
||||
}
|
||||
Reference in New Issue
Block a user