class Bill
  include Mongoid::Document
  include Mongoid::Timestamps # adds created_at and updated_at fields


  belongs_to :balance

  # field <name>, :type => <type>, :default => <value>
  field :cash_type, :type => String
  field :amount, :type => String
  field :info, :type => String
  field :user_to, :type => String

  # You can define indexes on documents using the index macro:
  # index :field <, :unique => true>

  # You can create a composite key in mongoid to replace the default id using the key macro:
  # key :field <, :another_field, :one_more ....>
end
