diff --git a/src/main/kotlin/data/database/tables/AddressTable.kt b/src/main/kotlin/data/database/tables/AddressTable.kt index 67a9e3f..78d9153 100644 --- a/src/main/kotlin/data/database/tables/AddressTable.kt +++ b/src/main/kotlin/data/database/tables/AddressTable.kt @@ -8,6 +8,6 @@ object AddressTable: Table("user_address") { val entrance = integer("address_entrance") val floor = integer("address_floor") val apartment = integer("address_apartment") - val comment = text("address_comment") + val comment = text("address_comment").nullable() override val primaryKey: PrimaryKey = PrimaryKey(id) } \ No newline at end of file diff --git a/src/main/kotlin/dto/request/AddAddressRequest.kt b/src/main/kotlin/dto/request/AddAddressRequest.kt index 8138f4a..091e48b 100644 --- a/src/main/kotlin/dto/request/AddAddressRequest.kt +++ b/src/main/kotlin/dto/request/AddAddressRequest.kt @@ -8,5 +8,5 @@ data class AddAddressRequest( val entrance: Int, val floor: Int, val apartment: Int, - val comment: String + val comment: String? = null, ) \ No newline at end of file diff --git a/src/main/kotlin/dto/response/AddressResponse.kt b/src/main/kotlin/dto/response/AddressResponse.kt index 6fc0511..752bcc0 100644 --- a/src/main/kotlin/dto/response/AddressResponse.kt +++ b/src/main/kotlin/dto/response/AddressResponse.kt @@ -11,6 +11,6 @@ data class AddressResponse( val entrance: Int, val floor: Int, val apartment: Int, - val comment: String, + val comment: String?, val address: String, ) \ No newline at end of file