aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 15:47:07 +0100
committerPacien TRAN-GIRARD2015-02-08 15:47:07 +0100
commita022850963552096dab032fb57c16d3b1d3ac51a (patch)
tree2404424261057b9d0d60daf7c3f34c49dc482f68 /app/models
parent1dd7d1dd1a796592b4448eba878ddcae8e063407 (diff)
downloadminibay-a022850963552096dab032fb57c16d3b1d3ac51a.tar.gz
Add sign up form and AutoInc on tables uuid
Diffstat (limited to 'app/models')
-rw-r--r--app/models/Tables.scala22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/models/Tables.scala b/app/models/Tables.scala
index ff1f267..24e0aeb 100644
--- a/app/models/Tables.scala
+++ b/app/models/Tables.scala
@@ -22,7 +22,7 @@ trait Tables {
22 * @param userUuid Database column user_uuid DBType(varchar), Length(36,true) 22 * @param userUuid Database column user_uuid DBType(varchar), Length(36,true)
23 * @param bidDate Database column bid_date DBType(timestamptz) 23 * @param bidDate Database column bid_date DBType(timestamptz)
24 * @param offer Database column offer DBType(numeric) */ 24 * @param offer Database column offer DBType(numeric) */
25 case class Bid(uuid: String, itemUuid: String, userUuid: String, bidDate: java.sql.Timestamp, offer: scala.math.BigDecimal) 25 case class Bid(uuid: String = null, itemUuid: String, userUuid: String, bidDate: java.sql.Timestamp, offer: scala.math.BigDecimal)
26 /** GetResult implicit for fetching Bid objects using plain SQL queries */ 26 /** GetResult implicit for fetching Bid objects using plain SQL queries */
27 implicit def GetResultBid(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Bid] = GR{ 27 implicit def GetResultBid(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Bid] = GR{
28 prs => import prs._ 28 prs => import prs._
@@ -35,7 +35,7 @@ trait Tables {
35 def ? = (uuid.?, itemUuid.?, userUuid.?, bidDate.?, offer.?).shaped.<>({r=>import r._; _1.map(_=> Bid.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported.")) 35 def ? = (uuid.?, itemUuid.?, userUuid.?, bidDate.?, offer.?).shaped.<>({r=>import r._; _1.map(_=> Bid.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported."))
36 36
37 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */ 37 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */
38 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true)) 38 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true), O.AutoInc)
39 /** Database column item_uuid DBType(varchar), Length(36,true) */ 39 /** Database column item_uuid DBType(varchar), Length(36,true) */
40 val itemUuid: Column[String] = column[String]("item_uuid", O.Length(36,varying=true)) 40 val itemUuid: Column[String] = column[String]("item_uuid", O.Length(36,varying=true))
41 /** Database column user_uuid DBType(varchar), Length(36,true) */ 41 /** Database column user_uuid DBType(varchar), Length(36,true) */
@@ -59,7 +59,7 @@ trait Tables {
59 * @param endDate Database column end_date DBType(timestamptz) 59 * @param endDate Database column end_date DBType(timestamptz)
60 * @param fee Database column fee DBType(numeric) 60 * @param fee Database column fee DBType(numeric)
61 * @param rate Database column rate DBType(numeric) */ 61 * @param rate Database column rate DBType(numeric) */
62 case class Charge(uuid: String, startDate: java.sql.Timestamp, endDate: java.sql.Timestamp, fee: scala.math.BigDecimal, rate: scala.math.BigDecimal) 62 case class Charge(uuid: String = null, startDate: java.sql.Timestamp, endDate: java.sql.Timestamp, fee: scala.math.BigDecimal, rate: scala.math.BigDecimal)
63 /** GetResult implicit for fetching Charge objects using plain SQL queries */ 63 /** GetResult implicit for fetching Charge objects using plain SQL queries */
64 implicit def GetResultCharge(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Charge] = GR{ 64 implicit def GetResultCharge(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Charge] = GR{
65 prs => import prs._ 65 prs => import prs._
@@ -72,7 +72,7 @@ trait Tables {
72 def ? = (uuid.?, startDate.?, endDate.?, fee.?, rate.?).shaped.<>({r=>import r._; _1.map(_=> Charge.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported.")) 72 def ? = (uuid.?, startDate.?, endDate.?, fee.?, rate.?).shaped.<>({r=>import r._; _1.map(_=> Charge.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported."))
73 73
74 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */ 74 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */
75 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true)) 75 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true), O.AutoInc)
76 /** Database column start_date DBType(timestamptz) */ 76 /** Database column start_date DBType(timestamptz) */
77 val startDate: Column[java.sql.Timestamp] = column[java.sql.Timestamp]("start_date") 77 val startDate: Column[java.sql.Timestamp] = column[java.sql.Timestamp]("start_date")
78 /** Database column end_date DBType(timestamptz) */ 78 /** Database column end_date DBType(timestamptz) */
@@ -94,7 +94,7 @@ trait Tables {
94 * @param shortDesc Database column short_desc DBType(varchar), Length(30,true) 94 * @param shortDesc Database column short_desc DBType(varchar), Length(30,true)
95 * @param longDesc Database column long_desc DBType(text), Length(2147483647,true) 95 * @param longDesc Database column long_desc DBType(text), Length(2147483647,true)
96 * @param initialPrice Database column initial_price DBType(numeric) */ 96 * @param initialPrice Database column initial_price DBType(numeric) */
97 case class Item(uuid: String, userUuid: String, startDate: java.sql.Timestamp, endDate: java.sql.Timestamp, itemName: String, shortDesc: String, longDesc: String, initialPrice: scala.math.BigDecimal) 97 case class Item(uuid: String = null, userUuid: String, startDate: java.sql.Timestamp, endDate: java.sql.Timestamp, itemName: String, shortDesc: String, longDesc: String, initialPrice: scala.math.BigDecimal)
98 /** GetResult implicit for fetching Item objects using plain SQL queries */ 98 /** GetResult implicit for fetching Item objects using plain SQL queries */
99 implicit def GetResultItem(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Item] = GR{ 99 implicit def GetResultItem(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Item] = GR{
100 prs => import prs._ 100 prs => import prs._
@@ -107,7 +107,7 @@ trait Tables {
107 def ? = (uuid.?, userUuid.?, startDate.?, endDate.?, itemName.?, shortDesc.?, longDesc.?, initialPrice.?).shaped.<>({r=>import r._; _1.map(_=> Item.tupled((_1.get, _2.get, _3.get, _4.get, _5.get, _6.get, _7.get, _8.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported.")) 107 def ? = (uuid.?, userUuid.?, startDate.?, endDate.?, itemName.?, shortDesc.?, longDesc.?, initialPrice.?).shaped.<>({r=>import r._; _1.map(_=> Item.tupled((_1.get, _2.get, _3.get, _4.get, _5.get, _6.get, _7.get, _8.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported."))
108 108
109 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */ 109 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */
110 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true)) 110 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true), O.AutoInc)
111 /** Database column user_uuid DBType(varchar), Length(36,true) */ 111 /** Database column user_uuid DBType(varchar), Length(36,true) */
112 val userUuid: Column[String] = column[String]("user_uuid", O.Length(36,varying=true)) 112 val userUuid: Column[String] = column[String]("user_uuid", O.Length(36,varying=true))
113 /** Database column start_date DBType(timestamptz) */ 113 /** Database column start_date DBType(timestamptz) */
@@ -135,7 +135,7 @@ trait Tables {
135 * @param transactionDate Database column transaction_date DBType(timestamptz) 135 * @param transactionDate Database column transaction_date DBType(timestamptz)
136 * @param amount Database column amount DBType(numeric) 136 * @param amount Database column amount DBType(numeric)
137 * @param label Database column label DBType(varchar), Length(255,true) */ 137 * @param label Database column label DBType(varchar), Length(255,true) */
138 case class Transaction(uuid: String, userUuid: String, transactionDate: java.sql.Timestamp, amount: scala.math.BigDecimal, label: String) 138 case class Transaction(uuid: String = null, userUuid: String, transactionDate: java.sql.Timestamp, amount: scala.math.BigDecimal, label: String)
139 /** GetResult implicit for fetching Transaction objects using plain SQL queries */ 139 /** GetResult implicit for fetching Transaction objects using plain SQL queries */
140 implicit def GetResultTransaction(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Transaction] = GR{ 140 implicit def GetResultTransaction(implicit e0: GR[String], e1: GR[java.sql.Timestamp], e2: GR[scala.math.BigDecimal]): GR[Transaction] = GR{
141 prs => import prs._ 141 prs => import prs._
@@ -148,7 +148,7 @@ trait Tables {
148 def ? = (uuid.?, userUuid.?, transactionDate.?, amount.?, label.?).shaped.<>({r=>import r._; _1.map(_=> Transaction.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported.")) 148 def ? = (uuid.?, userUuid.?, transactionDate.?, amount.?, label.?).shaped.<>({r=>import r._; _1.map(_=> Transaction.tupled((_1.get, _2.get, _3.get, _4.get, _5.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported."))
149 149
150 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */ 150 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */
151 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true)) 151 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true), O.AutoInc)
152 /** Database column user_uuid DBType(varchar), Length(36,true) */ 152 /** Database column user_uuid DBType(varchar), Length(36,true) */
153 val userUuid: Column[String] = column[String]("user_uuid", O.Length(36,varying=true)) 153 val userUuid: Column[String] = column[String]("user_uuid", O.Length(36,varying=true))
154 /** Database column transaction_date DBType(timestamptz) */ 154 /** Database column transaction_date DBType(timestamptz) */
@@ -177,7 +177,7 @@ trait Tables {
177 * @param address Database column address DBType(varchar), Length(255,true) 177 * @param address Database column address DBType(varchar), Length(255,true)
178 * @param phone Database column phone DBType(varchar), Length(20,true) 178 * @param phone Database column phone DBType(varchar), Length(20,true)
179 * @param birthdate Database column birthdate DBType(timestamptz) */ 179 * @param birthdate Database column birthdate DBType(timestamptz) */
180 case class User(uuid: String, username: String, email: String, userPassword: String, creationDate: java.sql.Timestamp, firstName: String, lastName: String, countryCode: String, postalCode: String, address: String, phone: String, birthdate: java.sql.Timestamp) 180 case class User(uuid: String = null, username: String, email: String, userPassword: String, creationDate: java.sql.Timestamp, firstName: String, lastName: String, countryCode: String, postalCode: String, address: String, phone: String, birthdate: java.sql.Timestamp)
181 /** GetResult implicit for fetching User objects using plain SQL queries */ 181 /** GetResult implicit for fetching User objects using plain SQL queries */
182 implicit def GetResultUser(implicit e0: GR[String], e1: GR[java.sql.Timestamp]): GR[User] = GR{ 182 implicit def GetResultUser(implicit e0: GR[String], e1: GR[java.sql.Timestamp]): GR[User] = GR{
183 prs => import prs._ 183 prs => import prs._
@@ -190,7 +190,7 @@ trait Tables {
190 def ? = (uuid.?, username.?, email.?, userPassword.?, creationDate.?, firstName.?, lastName.?, countryCode.?, postalCode.?, address.?, phone.?, birthdate.?).shaped.<>({r=>import r._; _1.map(_=> User.tupled((_1.get, _2.get, _3.get, _4.get, _5.get, _6.get, _7.get, _8.get, _9.get, _10.get, _11.get, _12.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported.")) 190 def ? = (uuid.?, username.?, email.?, userPassword.?, creationDate.?, firstName.?, lastName.?, countryCode.?, postalCode.?, address.?, phone.?, birthdate.?).shaped.<>({r=>import r._; _1.map(_=> User.tupled((_1.get, _2.get, _3.get, _4.get, _5.get, _6.get, _7.get, _8.get, _9.get, _10.get, _11.get, _12.get)))}, (_:Any) => throw new Exception("Inserting into ? projection not supported."))
191 191
192 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */ 192 /** Database column uuid DBType(varchar), PrimaryKey, Length(36,true) */
193 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true)) 193 val uuid: Column[String] = column[String]("uuid", O.PrimaryKey, O.Length(36,varying=true), O.AutoInc)
194 /** Database column username DBType(varchar), Length(20,true) */ 194 /** Database column username DBType(varchar), Length(20,true) */
195 val username: Column[String] = column[String]("username", O.Length(20,varying=true)) 195 val username: Column[String] = column[String]("username", O.Length(20,varying=true))
196 /** Database column email DBType(varchar), Length(255,true) */ 196 /** Database column email DBType(varchar), Length(255,true) */
@@ -219,4 +219,4 @@ trait Tables {
219 } 219 }
220 /** Collection-like TableQuery object for table Users */ 220 /** Collection-like TableQuery object for table Users */
221 lazy val Users = new TableQuery(tag => new Users(tag)) 221 lazy val Users = new TableQuery(tag => new Users(tag))
222} \ No newline at end of file 222}