diff --git a/src/main/kotlin/su/redume/models/Crypto.kt b/src/main/kotlin/su/redume/models/Crypto.kt index 3d1f55c..dd5d35c 100644 --- a/src/main/kotlin/su/redume/models/Crypto.kt +++ b/src/main/kotlin/su/redume/models/Crypto.kt @@ -1,11 +1,10 @@ package su.redume.models import org.jetbrains.exposed.sql.Table -import org.jetbrains.exposed.sql.stringParam object Crypto : Table() { - val fromCurrecny = stringParam("fromCurrecny") - val convCurrency = stringParam("convCurrency") + val fromCurrecny = varchar("fromCurrecny", 3) + val convCurrency = varchar("convCurrency", 3) val rate = float("rate") val date = long("date") } \ No newline at end of file diff --git a/src/main/kotlin/su/redume/models/Fiat.kt b/src/main/kotlin/su/redume/models/Fiat.kt index 5b17b19..dd385d2 100644 --- a/src/main/kotlin/su/redume/models/Fiat.kt +++ b/src/main/kotlin/su/redume/models/Fiat.kt @@ -1,11 +1,10 @@ package su.redume.models import org.jetbrains.exposed.sql.Table -import org.jetbrains.exposed.sql.stringParam object Fiat : Table() { - val fromCurrecny = stringParam("fromCurrecny") - val convCurrency = stringParam("convCurrency") + val fromCurrecny = varchar("fromCurrecny", 3) + val convCurrency = varchar("convCurrency", 3) val rate = float("rate") val date = long("date") } \ No newline at end of file