title: Kotlin ktor exposed DSL insert with reference
body: <p>I am developing a Kotlin with ktor application and I am using exposed as ORM. I have a table with a reference to another table. The relationship is many to one. ex: </p>
  
  <pre><code>object Users : IdTable&lt;String&gt;() {
     override val id: Column&lt;EntityID&lt;String&gt;&gt; = varchar("user_id", 64).entityId().primaryKey()
     val email = varchar("email", 128).uniqueIndex()
     val firstName = varchar("first_name", 64)
     val lastName = varchar("last_name", 64)
  }
  </code></pre>
  
  <p>&amp; User Attendance table as - </p>
  
  <pre><code>object UserAttendances : IntIdTable() {
     val userId = reference("user_id", Users).index()
     val checkInTime = date("check_in")
     val checkOutTime = date("check_out")
  }
  </code></pre>
  
  <p>Now when I am trying to insert into the attendance table, i am not sure how to map the insert to users. I tried the following - </p>
  
  <pre><code>StaffAttendances.insert {
      it[date] = DateTime.now()
      it[checkInTime] = DateTime.now()
      it[userId] = userId
  }
  </code></pre>
  
  <p>This gives a compilation error that the required type is <code>EntityId&lt;String&gt;</code> but found <code>String</code>. Any help on how i can insert into a reference. This could possibly be because I have String as ID column with UUIDs</p>