forked from siwapp/siwapp-ror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestimate.rb
63 lines (61 loc) · 2.28 KB
/
estimate.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class Estimate < Common
end
# == Schema Information
#
# Table name: commons
#
# id :bigint not null, primary key
# contact_person :string(100)
# currency :string(3)
# days_to_due :integer
# deleted_at :datetime
# deleted_number :integer
# draft :boolean default(FALSE)
# due_date :date
# email :string(100)
# enabled :boolean default(TRUE)
# failed :boolean default(FALSE)
# finishing_date :date
# gross_amount :decimal(53, 15) default(0.0)
# identification :string(50)
# invoicing_address :text
# issue_date :date
# max_occurrences :integer
# meta_attributes :text
# must_occurrences :integer
# name :string(100)
# net_amount :decimal(53, 15) default(0.0)
# notes :text
# number :integer
# paid :boolean default(FALSE)
# paid_amount :decimal(53, 15) default(0.0)
# period :integer
# period_type :string(8)
# sent_by_email :boolean default(FALSE)
# shipping_address :text
# starting_date :date
# terms :text
# type :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# customer_id :integer not null
# email_template_id :integer
# print_template_id :integer
# recurring_invoice_id :integer
# series_id :integer
#
# Indexes
#
# cntct_idx (contact_person)
# common_deleted_number_idx (series_id,deleted_number)
# common_recurring_invoice_id_common_id (recurring_invoice_id)
# common_type_idx (type)
# common_unique_number_idx (series_id,number) UNIQUE
# cstid_idx (identification)
# cstml_idx (email)
# cstnm_idx (name)
# customer_id_idx (customer_id)
# index_commons_on_deleted_at (deleted_at)
# series_id_idx (series_id)
# type_and_status_idx (type)
#