debt-manager/app/models/user.rb
Louis Vallat edf60e9557
feat: added spendings for bubbles
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-12-31 19:06:33 +01:00

28 lines
957 B
Ruby

# == Schema Information
#
# Table name: users
#
# id :uuid not null, primary key
# email :string default(""), not null
# encrypted_password :string default(""), not null
# remember_created_at :datetime
# reset_password_sent_at :datetime
# reset_password_token :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_users_on_email (email) UNIQUE
# index_users_on_reset_password_token (reset_password_token) UNIQUE
#
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatable
has_many :bubbles, foreign_key: :owner_id
has_many :spendings, foreign_key: :owner_id
end