libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit e3b67ab317a61b44cf7f40fb83cdca1cf3206411
parent 7d17525367302bfaa14577dcc76685f178e1a2e4
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue, 18 Feb 2020 22:36:31 +0100

default

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt @@ -60,7 +60,7 @@ const val ID_MAX_LENGTH = 50 object Pain001Table : IntIdTableWithAmount() { val msgId = integer("msgId").uniqueIndex().autoIncrement() val paymentId = integer("paymentId").uniqueIndex().autoIncrement() // id for this system - val date = date("fileDate") + val date = date("fileDate").date() val sum = amount("sum") val debtorAccount = text("debtorAccount") val endToEndId = integer("EndToEndId").uniqueIndex().autoIncrement() // id for this and the creditor system @@ -68,7 +68,7 @@ object Pain001Table : IntIdTableWithAmount() { val creditorIban = text("creditorIban") val creditorBic = text("creditorBic") val creditorName = text("creditorName") - val submitted = bool("submitted") // indicates whether the PAIN message was sent to the bank. + val submitted = bool("submitted").default(false) // indicates whether the PAIN message was sent to the bank. } class Pain001Entity(id: EntityID<Int>) : IntEntity(id) {