Guest User

Untitled

a guest
Nov 24th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. slick.dbs.default.profile="slick.jdbc.PostgresProfile$"
  2. slick.dbs.default.db.driver="org.postgresql.Driver"
  3. slick.dbs.default.db.url="jdbc:postgresql://localhost:5432/postgres"
  4. slick.dbs.default.db.user=postgres
  5. slick.dbs.default.db.password=postgres
  6.  
  7. name := """myproject"""
  8. version := "1.0-SNAPSHOT"
  9.  
  10. lazy val root = (project in file(".")).enablePlugins(PlayScala)
  11.  
  12. resolvers += Resolver.sonatypeRepo("snapshots")
  13.  
  14. scalaVersion := "2.12.4"
  15.  
  16. libraryDependencies += guice
  17. libraryDependencies += evolutions
  18.  
  19. libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0" % Test
  20.  
  21.  
  22. libraryDependencies += "org.postgresql" % "postgresql" % "42.1.4"
  23. libraryDependencies += "com.typesafe.play" %% "play-slick" % "3.0.1"
  24. libraryDependencies += "com.typesafe.play" %% "play-slick-evolutions" % "3.0.1"
  25.  
  26. # Users schema
  27.  
  28. # --- !Ups
  29.  
  30. CREATE TABLE users
  31. (
  32. id bigint NOT NULL,
  33. email character varying(255) NOT NULL,
  34. username character varying(100) NOT NULL,
  35. password character varying(100) NOT NULL,
  36. PRIMARY KEY (id)
  37. )
  38. WITH (
  39. OIDS = FALSE
  40. );
  41.  
  42. # --- !Downs
  43.  
  44. DROP TABLE IF EXISTS users CASCADE;
Add Comment
Please, Sign In to add comment