aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/common/domain/Label.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/xyz/driver/common/domain/Label.scala')
-rw-r--r--src/main/scala/xyz/driver/common/domain/Label.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/common/domain/Label.scala b/src/main/scala/xyz/driver/common/domain/Label.scala
new file mode 100644
index 0000000..2214216
--- /dev/null
+++ b/src/main/scala/xyz/driver/common/domain/Label.scala
@@ -0,0 +1,15 @@
+package xyz.driver.common.domain
+
+import xyz.driver.common.logging._
+
+case class Label(id: LongId[Label],
+ categoryId: LongId[Category],
+ name: String,
+ description: String)
+
+object Label {
+ implicit def toPhiString(x: Label): PhiString = {
+ import x._
+ phi"Label($id, categoryId=${Unsafe(categoryId)}, name=${Unsafe(name)}, description=${Unsafe(description)})"
+ }
+}