Files
Dena/app/models/operations/expense.rb
2026-08-13 19:50:53 +03:30

30 lines
801 B
Ruby

# frozen_string_literal: true
module Operations
# {Expense} is a income statement operation
class Expense < Operation
end
end
# == Schema Information
# Schema version: 20201125134745
#
# Table name: expenses
#
# id :integer not null, primary key
# code :integer not null
# currency_id :string(255) not null
# reference_type :string(255)
# reference_id :integer
# debit :decimal(32, 16) default(0.0), not null
# credit :decimal(32, 16) default(0.0), not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_expenses_on_currency_id (currency_id)
# index_expenses_on_reference_type_and_reference_id (reference_type,reference_id)
#