socialnetworknews

This will basicly get a paper.li OpenSource clone at some point - DEPRECATED NOT USED ANYMORE
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews.git
Log | Files | Refs | README | LICENSE

Database.scala (665B)


      1 package database
      2 
      3 import java.sql.Date
      4 
      5 import slick.jdbc.SQLiteProfile.api._
      6 
      7 // Definition of the TWEETS table
      8 class Tweets(tag: Tag)
      9     extends Table[(Int, String, String, String, String, Date)](tag, "TWEETS") {
     10   def id = column[Int]("ID", O.PrimaryKey) // This is the primary key column
     11   def user = column[String]("USERNAME")
     12   def text = column[String]("TEXT")
     13   def url = column[String]("URL")
     14   def interactions = column[String]("INTERACTIONS")
     15   def indexingDate = column[Date]("ZIP")
     16 
     17   // Every table needs a * projection with the same type as the table's type parameter
     18   def * = (id, user, text, url, interactions, indexingDate)
     19 }
     20 
     21 class Database {}