Commit 358ac8aa authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

deal entity

parent 54ce9ee8
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity
import io.requery.ForeignKey
import io.requery.Key
import io.requery.Persistable
/**
* Created by Vladislav Bogdashkin on 05.11.2019.
*/
@Entity
interface Deal : Persistable {
@get:Key
val id:String
val estateCrmId:String
val opportunitySum:Int
val paymentSum:Int
val amountPaySum:Int
val statusId:Int
val managerName: String
@get:ForeignKey(references = Estate::class )
var estate:Estate
}
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity
import io.requery.Key
import io.requery.Persistable
import io.requery.*
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
......@@ -14,4 +12,48 @@ interface Estate : Persistable {
@get:Key
val id: Int
val type: String
val number: String
@get:Nullable
val sectionBegin: Int?
@get:Nullable
val sectionEnd: Int?
@get:Nullable
val planJpgUrl: String?
@get:Nullable
val planJpgWidth: Int?
@get:Nullable
val planJpgHeight: Int?
@get:Nullable
val planPngUrl: String?
@get:Nullable
val planPngWidth: Int?
@get:Nullable
val planPngHeight: Int?
@get:Nullable
val rooms: Int?
@get:Nullable
val albumId: Int?
@get:Nullable
val multitourId: Int?
val info_building: Int
val info_section_begin: Int
val info_floor: Int
@get:OneToMany
val explications: Set<Explication>?
val info_floor_max: Int
@get:Nullable
val url: String?
@get:Nullable
val info_area: Float?
@get:Nullable
val info_area_living: Float?
@get:Nullable
val info_kind: String?
@get:Nullable
val info_dependent: Boolean?
@get:Nullable
val info_decoration: String?
}
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.*
/**
* Created by Vladislav Bogdashkin on 24.09.2019.
*/
@Entity
interface Explication : Persistable {
@get:Key
@get:Generated
val id: Int
@get:ForeignKey(references = PlanPreset::class)
val planId: Int
val living: Boolean
val area: Float
val title: String
}
package com.biganto.visual.roompark.domain.model
/**
* Created by Vladislav Bogdashkin on 24.09.2019.
*/
data class PlanTypeModel(
val id:Int,
val planTypeId:Int,
val estateId:Int,
val features:List<FeatureStatus>,
val uri:String
)
data class FeatureStatus(
val featureName:String,
val switchedOn: Boolean
)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment