From 8fcad060e481becd7b408cdc6b987f4fb64e03ce Mon Sep 17 00:00:00 2001 From: Vladislav Frolov <50615459+Cheshiriks@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:00:05 +0300 Subject: [PATCH] Fixed donwload RawCosvFile (#2934) --- .../kotlin/com/saveourtool/save/entitiescosv/RawCosvFile.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entitiescosv/RawCosvFile.kt b/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entitiescosv/RawCosvFile.kt index bbdc4d3be8..dee30616d8 100644 --- a/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entitiescosv/RawCosvFile.kt +++ b/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entitiescosv/RawCosvFile.kt @@ -30,6 +30,7 @@ import kotlinx.datetime.toKotlinLocalDateTime @Table(schema = "cosv", name = "raw_cosv_file") @Suppress("LongParameterList") class RawCosvFile( + @Column(name = "file_name") var fileName: String, @Column(name = "user_id") var userId: Long, @@ -39,9 +40,13 @@ class RawCosvFile( var status: RawCosvFileStatus, @Formula("LOWER(file_name) LIKE '%_$ZIP_ARCHIVE_EXTENSION'") var isZip: Boolean? = null, + @Column(name = "status_message") var statusMessage: String? = null, + @Column(name = "content_length") var contentLength: Long? = null, + @Column(name = "create_date") override var createDate: LocalDateTime? = null, + @Column(name = "update_date") override var updateDate: LocalDateTime? = null, ) : BaseEntityWithDtoWithId(), IBaseEntityWithDate { override fun toDto(): RawCosvFileDto = RawCosvFileDto(