55 lines
1.8 KiB
Clojure
55 lines
1.8 KiB
Clojure
[{:db/valueType :db.type/double,
|
|
:db/cardinality :db.cardinality/one,
|
|
:db/noHistory true
|
|
:db/doc "The cached running balance for the account this line item is for",
|
|
:db/ident :journal-entry-line/running-balance,
|
|
}
|
|
{:db/valueType :db.type/boolean,
|
|
:db/cardinality :db.cardinality/one,
|
|
:db/noHistory true
|
|
:db/doc "Whether or not this journal entry line is dirty and needs to recalculate balances",
|
|
:db/ident :journal-entry-line/dirty,
|
|
}
|
|
{:db/valueType :db.type/tuple
|
|
:db/tupleTypes [:db.type/ref :db.type/ref :db.type/string :db.type/instant]
|
|
:db/index true
|
|
:db/cardinality :db.cardinality/one,
|
|
:db/ident :journal-entry-line/client+account+location+date
|
|
:db/doc "Used to find accounts and locations quickly",
|
|
:db/noHistory true
|
|
}
|
|
|
|
{:db/valueType :db.type/tuple
|
|
:db/tupleAttrs [:sales-order/client :sales-order/date]
|
|
:db/index true
|
|
:db/cardinality :db.cardinality/one,
|
|
:db/ident :sales-order/client+date
|
|
:db/doc "Used to find sales orders quickly",
|
|
:db/noHistory true
|
|
}
|
|
|
|
{:db/valueType :db.type/ref
|
|
:db/cardinality :db.cardinality/one
|
|
:db/ident :transaction/recommended-account
|
|
:db/doc "The recommended account from the ML alogorithm"
|
|
:db/noHistory true}
|
|
|
|
{:db/valueType :db.type/ref
|
|
:db/cardinality :db.cardinality/one
|
|
:db/ident :transaction/recommended-vendor
|
|
:db/doc "The recommended vendor from the ML alogorithm"
|
|
:db/noHistory true}
|
|
|
|
{:db/valueType :db.type/double
|
|
:db/cardinality :db.cardinality/one
|
|
:db/ident :transaction/vendor-confidence
|
|
:db/doc "The confidence from the ML alogorithm"
|
|
:db/noHistory true}
|
|
|
|
{:db/valueType :db.type/double
|
|
:db/cardinality :db.cardinality/one
|
|
:db/ident :transaction/account-confidence
|
|
:db/doc "The confidence from the ML alogorithm"
|
|
:db/noHistory true}
|
|
]
|