title: Scala Slick Model with Optional Image column
body: <p>I am trying to add a column to an existing model that has an optional image, I am using Scala Slick with the Play Framework. What would be an example of storing a image with a Scala Slick model? </p>
  
  <pre><code>case class Complication(complicationId:Long,
  vitalSignId:Long,
  complication:String,definition:String,reason:String,
  treatment:String,notes:String,
  weblinks:String,upperlower:String)
  
  
  object ComplicationDAO extends Table[Complication]("complications") with DbConn { 
  
    def complicationId = column[Long]("complication_id", O.PrimaryKey, O.AutoInc)
    def vitalSignId = column[Long]("vital_sign_id") 
    def complication = column[String]("complication")
    def definition = column[String]("definition",O.DBType("varchar(4000)"))
    def reason = column[String]("reason",O.DBType("varchar(4000)"))
    def treatment = column[String]("treatment",O.DBType("varchar(4000)"))
    def notes = column[String]("notes",O.DBType("varchar(4000)")) 
    def weblinks = column[String]("weblinks")
    def upperlower = column[String]("upperlower") 
    def treatmentImage = ??? //here is where it needs to be defined! 
    def * = complicationId ~  vitalSignId ~ complication ~ definition ~ reason ~ treatment ~ notes ~ weblinks ~ upperlower&lt;&gt; (Complication, Complication.unapply _) 
  
    def autoInc = 
      vitalSignId ~ complication ~ definition ~ reason ~ 
      treatment ~ notes ~ weblinks ~ upperlower &lt;&gt;
      (NewComplication, NewComplication.unapply _) returning complicationId 
  
  }
  </code></pre>
  
  <p>This is the model that I am trying to integrate an image into.</p>
  
  <p>Thanks for the advice! </p>