summaryrefslogtreecommitdiff
path: root/app/models/user_account.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user_account.rb')
-rw-r--r--app/models/user_account.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/user_account.rb b/app/models/user_account.rb
new file mode 100644
index 0000000..b54c93d
--- /dev/null
+++ b/app/models/user_account.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+# UserAccount model
+# email: string
+# password_digest (secure password): string
+# first_name: string
+# last_name: string
+# session_key: string
+class UserAccount < ApplicationRecord
+ has_secure_password validations: false
+
+ def full_name
+ "#{first_name} #{last_name}"
+ end
+end