aboutsummaryrefslogtreecommitdiff
path: root/src/models/user.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/user.cr')
-rw-r--r--src/models/user.cr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/models/user.cr b/src/models/user.cr
new file mode 100644
index 0000000..39729bb
--- /dev/null
+++ b/src/models/user.cr
@@ -0,0 +1,13 @@
+class User < BaseModel
+ include Carbon::Emailable
+ include Authentic::PasswordAuthenticatable
+
+ table do
+ column email : String
+ column encrypted_password : String
+ end
+
+ def emailable : Carbon::Address
+ Carbon::Address.new(email)
+ end
+end