mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Story#105855968 - send invoices to directo
This commit is contained in:
parent
b76fb8c9ff
commit
ef55560d0e
7 changed files with 309 additions and 229 deletions
|
@ -11,11 +11,12 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160108135436) do
|
||||
ActiveRecord::Schema.define(version: 20160304125933) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
enable_extension "hstore"
|
||||
enable_extension "btree_gist"
|
||||
|
||||
create_table "account_activities", force: :cascade do |t|
|
||||
t.integer "account_id"
|
||||
|
@ -108,6 +109,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.datetime "updated_at"
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
t.boolean "in_directo", default: false
|
||||
end
|
||||
|
||||
create_table "banklink_transactions", force: :cascade do |t|
|
||||
|
@ -144,6 +146,17 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
|
||||
add_index "blocked_domains", ["name"], name: "index_blocked_domains_on_name", using: :btree
|
||||
|
||||
create_table "business_registry_caches", force: :cascade do |t|
|
||||
t.string "ident"
|
||||
t.string "ident_country_code"
|
||||
t.datetime "retrieved_on"
|
||||
t.string "associated_businesses", array: true
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
add_index "business_registry_caches", ["ident"], name: "index_business_registry_caches_on_ident", using: :btree
|
||||
|
||||
create_table "cached_nameservers", id: false, force: :cascade do |t|
|
||||
t.string "hostname", limit: 255
|
||||
t.string "ipv4", limit: 255
|
||||
|
@ -241,6 +254,17 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.datetime "created_at"
|
||||
end
|
||||
|
||||
create_table "directos", force: :cascade do |t|
|
||||
t.integer "item_id"
|
||||
t.string "item_type"
|
||||
t.json "response"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "invoice_number"
|
||||
end
|
||||
|
||||
add_index "directos", ["item_type", "item_id"], name: "index_directos_on_item_type_and_item_id", using: :btree
|
||||
|
||||
create_table "dnskeys", force: :cascade do |t|
|
||||
t.integer "domain_id"
|
||||
t.integer "flags"
|
||||
|
@ -345,6 +369,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
add_index "domains", ["registrant_verification_asked_at"], name: "index_domains_on_registrant_verification_asked_at", using: :btree
|
||||
add_index "domains", ["registrant_verification_token"], name: "index_domains_on_registrant_verification_token", using: :btree
|
||||
add_index "domains", ["registrar_id"], name: "index_domains_on_registrar_id", using: :btree
|
||||
add_index "domains", ["statuses"], name: "index_domains_on_statuses", using: :gin
|
||||
|
||||
create_table "epp_sessions", force: :cascade do |t|
|
||||
t.string "session_id"
|
||||
|
@ -372,20 +397,20 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
add_index "invoice_items", ["invoice_id"], name: "index_invoice_items_on_invoice_id", using: :btree
|
||||
|
||||
create_table "invoices", force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "invoice_type", null: false
|
||||
t.datetime "due_date", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "invoice_type", null: false
|
||||
t.datetime "due_date", null: false
|
||||
t.string "payment_term"
|
||||
t.string "currency", null: false
|
||||
t.string "currency", null: false
|
||||
t.string "description"
|
||||
t.string "reference_no"
|
||||
t.decimal "vat_prc", precision: 10, scale: 2, null: false
|
||||
t.decimal "vat_prc", precision: 10, scale: 2, null: false
|
||||
t.datetime "paid_at"
|
||||
t.integer "seller_id"
|
||||
t.string "seller_name", null: false
|
||||
t.string "seller_name", null: false
|
||||
t.string "seller_reg_no"
|
||||
t.string "seller_iban", null: false
|
||||
t.string "seller_iban", null: false
|
||||
t.string "seller_bank"
|
||||
t.string "seller_swift"
|
||||
t.string "seller_vat_no"
|
||||
|
@ -399,7 +424,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.string "seller_email"
|
||||
t.string "seller_contact_name"
|
||||
t.integer "buyer_id"
|
||||
t.string "buyer_name", null: false
|
||||
t.string "buyer_name", null: false
|
||||
t.string "buyer_reg_no"
|
||||
t.string "buyer_country_code"
|
||||
t.string "buyer_state"
|
||||
|
@ -414,6 +439,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.integer "number"
|
||||
t.datetime "cancelled_at"
|
||||
t.decimal "sum_cache", precision: 10, scale: 2
|
||||
t.boolean "in_directo", default: false
|
||||
end
|
||||
|
||||
add_index "invoices", ["buyer_id"], name: "index_invoices_on_buyer_id", using: :btree
|
||||
|
@ -592,7 +618,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.jsonb "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
|
@ -623,7 +649,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.jsonb "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
|
@ -683,7 +709,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.jsonb "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.text "nameserver_ids", default: [], array: true
|
||||
|
@ -761,7 +787,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.jsonb "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
|
@ -897,10 +923,10 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
|
||||
create_table "nameservers", force: :cascade do |t|
|
||||
t.string "hostname"
|
||||
t.string "ipv4", default: [], array: true
|
||||
t.string "ipv4", array: true
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "ipv6", default: [], array: true
|
||||
t.string "ipv6", array: true
|
||||
t.integer "domain_id"
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
|
@ -992,6 +1018,7 @@ ActiveRecord::Schema.define(version: 20160108135436) do
|
|||
end
|
||||
|
||||
add_index "registrars", ["code"], name: "index_registrars_on_code", using: :btree
|
||||
add_index "registrars", ["legacy_id"], name: "index_registrars_on_legacy_id", using: :btree
|
||||
|
||||
create_table "reserved_domains", force: :cascade do |t|
|
||||
t.datetime "created_at"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue