accounting/pkg/database/constants.go

14 lines
459 B
Go
Raw Normal View History

2024-01-15 22:49:29 +00:00
package database
import "github.com/google/uuid"
const constAcctIDNamespace = "17de217e-94d7-4a9b-8833-ecca7f0eb6ca"
var (
// UnallocatedMoney is a category UUID which is automatically created
// during database migration phase and therefore always available
UnallocatedMoney = uuid.NewSHA1(uuid.MustParse(constAcctIDNamespace), []byte("unallocated-money"))
invalidAcc = uuid.NewSHA1(uuid.MustParse(constAcctIDNamespace), []byte("INVALID ACCOUNT"))
)