price-point-api/app/models/session.rb

26 lines
529 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: sessions
#
# id :bigint not null, primary key
# ip_address :string
# token :string
# user_agent :string
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint not null
#
# Indexes
#
# index_sessions_on_token (token) UNIQUE
# index_sessions_on_user_id (user_id)
#
# Foreign Keys
#
# fk_rails_... (user_id => users.id)
#
2026-06-09 15:59:17 +00:00
class Session < ApplicationRecord
has_secure_token
2026-06-09 15:59:17 +00:00
belongs_to :user
end