WorkEntity

data class WorkEntity(workId: Int, parentId: Int, companyName: String, duration: Int)

Work model for local database.

Constructors

Link copied to clipboard
fun WorkEntity(workId: Int = 0, parentId: Int, companyName: String, duration: Int)

Functions

Link copied to clipboard
operator fun component1(): Int
Link copied to clipboard
operator fun component2(): Int
Link copied to clipboard
operator fun component3(): String
Link copied to clipboard
operator fun component4(): Int
Link copied to clipboard
fun copy(workId: Int = 0, parentId: Int, companyName: String, duration: Int): WorkEntity

Properties

Link copied to clipboard
val companyName: String

string representation of the company name.

Link copied to clipboard
val duration: Int

integer representation of the stay at the company as months.

Link copied to clipboard
val parentId: Int

id of the resume that this model belong to.

Link copied to clipboard
val workId: Int = 0

id of the work and primary key for this table.