From 3c448229bbcd7e19a04e92e49586209fad0d00cd Mon Sep 17 00:00:00 2001 From: Lars Dieckow Date: Tue, 5 Feb 2013 17:21:55 +0100 Subject: [PATCH] first dump including distro skeleton files --- Build.PL | 16 + Changes | 9 + README | 19 + bin/ngcp-dump-schema | 61 ++ lib/NGCP/Schema.pm | 48 ++ lib/NGCP/Schema/accounting.pm | 19 + lib/NGCP/Schema/accounting/Result/acc.pm | 198 +++++++ .../Schema/accounting/Result/acc_backup.pm | 198 +++++++ .../Schema/accounting/Result/acc_trash.pm | 198 +++++++ lib/NGCP/Schema/accounting/Result/cdr.pm | 525 ++++++++++++++++++ lib/NGCP/Schema/accounting/Result/mark.pm | 79 +++ .../Schema/accounting/Result/prepaid_costs.pm | 100 ++++ lib/NGCP/Schema/billing.pm | 19 + lib/NGCP/Schema/billing/Result/admins.pm | 183 ++++++ .../Schema/billing/Result/billing_fees.pm | 278 ++++++++++ .../billing/Result/billing_fees_history.pm | 257 +++++++++ .../Schema/billing/Result/billing_mappings.pm | 183 ++++++ .../Result/billing_peaktime_special.pm | 117 ++++ .../Result/billing_peaktime_weekdays.pm | 115 ++++ .../Schema/billing/Result/billing_profiles.pm | 358 ++++++++++++ .../Schema/billing/Result/billing_zones.pm | 154 +++++ .../billing/Result/billing_zones_history.pm | 136 +++++ lib/NGCP/Schema/billing/Result/contacts.pm | 278 ++++++++++ .../billing/Result/contract_balances.pm | 194 +++++++ .../Schema/billing/Result/contract_credits.pm | 163 ++++++ .../billing/Result/contract_registers.pm | 116 ++++ lib/NGCP/Schema/billing/Result/contracts.pm | 341 ++++++++++++ .../Schema/billing/Result/credit_payments.pm | 121 ++++ .../billing/Result/customer_registers.pm | 116 ++++ lib/NGCP/Schema/billing/Result/customers.pm | 314 +++++++++++ .../Schema/billing/Result/domain_resellers.pm | 121 ++++ lib/NGCP/Schema/billing/Result/domains.pm | 114 ++++ lib/NGCP/Schema/billing/Result/invoices.pm | 141 +++++ lib/NGCP/Schema/billing/Result/lnp_numbers.pm | 125 +++++ .../Schema/billing/Result/lnp_providers.pm | 95 ++++ lib/NGCP/Schema/billing/Result/ncos_levels.pm | 178 ++++++ .../Schema/billing/Result/ncos_lnp_list.pm | 143 +++++ .../billing/Result/ncos_pattern_list.pm | 123 ++++ .../Schema/billing/Result/order_payments.pm | 121 ++++ lib/NGCP/Schema/billing/Result/orders.pm | 303 ++++++++++ lib/NGCP/Schema/billing/Result/payments.pm | 186 +++++++ lib/NGCP/Schema/billing/Result/products.pm | 233 ++++++++ lib/NGCP/Schema/billing/Result/resellers.pm | 293 ++++++++++ .../Schema/billing/Result/voip_intercept.pm | 188 +++++++ .../Result/voip_number_block_resellers.pm | 121 ++++ .../billing/Result/voip_number_blocks.pm | 144 +++++ .../Schema/billing/Result/voip_numbers.pm | 222 ++++++++ .../Schema/billing/Result/voip_subscribers.pm | 219 ++++++++ lib/NGCP/Schema/carrier.pm | 19 + lib/NGCP/Schema/carrier/Result/contracts.pm | 163 ++++++ lib/NGCP/Schema/carrier/Result/credits.pm | 107 ++++ lib/NGCP/Schema/carrier/Result/customers.pm | 141 +++++ .../Schema/carrier/Result/interceptions.pm | 71 +++ lib/NGCP/Schema/carrier/Result/numbers.pm | 92 +++ lib/NGCP/Schema/carrier/Result/orders.pm | 107 ++++ lib/NGCP/Schema/carrier/Result/payments.pm | 131 +++++ lib/NGCP/Schema/carrier/Result/subscribers.pm | 178 ++++++ lib/NGCP/Schema/kamailio.pm | 19 + lib/NGCP/Schema/kamailio/Result/acc.pm | 198 +++++++ lib/NGCP/Schema/kamailio/Result/acc_backup.pm | 198 +++++++ lib/NGCP/Schema/kamailio/Result/acc_trash.pm | 198 +++++++ .../Schema/kamailio/Result/active_watchers.pm | 272 +++++++++ lib/NGCP/Schema/kamailio/Result/address.pm | 115 ++++ lib/NGCP/Schema/kamailio/Result/aliases.pm | 234 ++++++++ lib/NGCP/Schema/kamailio/Result/dbaliases.pm | 114 ++++ lib/NGCP/Schema/kamailio/Result/dialog.pm | 265 +++++++++ .../Schema/kamailio/Result/dialog_vars.pm | 95 ++++ lib/NGCP/Schema/kamailio/Result/dialplan.pm | 123 ++++ lib/NGCP/Schema/kamailio/Result/dispatcher.pm | 114 ++++ .../Schema/kamailio/Result/dom_preferences.pm | 129 +++++ lib/NGCP/Schema/kamailio/Result/domain.pm | 106 ++++ .../Schema/kamailio/Result/domain_attrs.pm | 126 +++++ .../kamailio/Result/fax_destinations.pm | 149 +++++ .../Schema/kamailio/Result/fax_journal.pm | 200 +++++++ .../Schema/kamailio/Result/fax_preferences.pm | 129 +++++ lib/NGCP/Schema/kamailio/Result/htable.pm | 105 ++++ lib/NGCP/Schema/kamailio/Result/lcr_gw.pm | 225 ++++++++ lib/NGCP/Schema/kamailio/Result/lcr_rule.pm | 172 ++++++ .../Schema/kamailio/Result/lcr_rule_target.pm | 166 ++++++ lib/NGCP/Schema/kamailio/Result/location.pm | 234 ++++++++ .../Result/mobile_push_registrations.pm | 97 ++++ .../kamailio/Result/peer_preferences.pm | 129 +++++ lib/NGCP/Schema/kamailio/Result/presentity.pm | 143 +++++ lib/NGCP/Schema/kamailio/Result/pua.pm | 218 ++++++++ .../Schema/kamailio/Result/rls_presentity.pm | 138 +++++ .../Schema/kamailio/Result/rls_watchers.pm | 265 +++++++++ .../kamailio/Result/sems_registrations.pm | 111 ++++ lib/NGCP/Schema/kamailio/Result/silo.pm | 168 ++++++ lib/NGCP/Schema/kamailio/Result/speed_dial.pm | 157 ++++++ lib/NGCP/Schema/kamailio/Result/subscriber.pm | 171 ++++++ lib/NGCP/Schema/kamailio/Result/trusted.pm | 95 ++++ .../Schema/kamailio/Result/usr_preferences.pm | 129 +++++ lib/NGCP/Schema/kamailio/Result/version.pm | 60 ++ .../Schema/kamailio/Result/voicemail_spool.pm | 178 ++++++ .../Schema/kamailio/Result/voicemail_users.pm | 315 +++++++++++ lib/NGCP/Schema/kamailio/Result/watchers.pm | 145 +++++ lib/NGCP/Schema/kamailio/Result/xcap.pm | 136 +++++ lib/NGCP/Schema/ngcp.pm | 19 + lib/NGCP/Schema/ngcp/Result/cfg_schema.pm | 108 ++++ lib/NGCP/Schema/ngcp/Result/db_schema.pm | 108 ++++ lib/NGCP/Schema/provisioning.pm | 19 + .../provisioning/Result/language_strings.pm | 101 ++++ .../provisioning/Result/voip_aig_sequence.pm | 63 +++ .../Result/voip_allowed_ip_groups.pm | 94 ++++ .../provisioning/Result/voip_cc_mappings.pm | 104 ++++ .../Result/voip_cf_destination_sets.pm | 134 +++++ .../Result/voip_cf_destinations.pm | 123 ++++ .../provisioning/Result/voip_cf_mappings.pm | 173 ++++++ .../provisioning/Result/voip_cf_periods.pm | 141 +++++ .../provisioning/Result/voip_cf_time_sets.pm | 134 +++++ .../provisioning/Result/voip_contacts.pm | 165 ++++++ .../provisioning/Result/voip_dbaliases.pm | 144 +++++ .../Result/voip_dom_preferences.pm | 143 +++++ .../provisioning/Result/voip_domains.pm | 128 +++++ .../Result/voip_fax_destinations.pm | 162 ++++++ .../Result/voip_fax_preferences.pm | 146 +++++ .../provisioning/Result/voip_peer_groups.pm | 138 +++++ .../provisioning/Result/voip_peer_hosts.pm | 179 ++++++ .../Result/voip_peer_preferences.pm | 143 +++++ .../provisioning/Result/voip_peer_rules.pm | 127 +++++ .../provisioning/Result/voip_preferences.pm | 231 ++++++++ .../Result/voip_preferences_enum.pm | 139 +++++ .../provisioning/Result/voip_reminder.pm | 127 +++++ .../Result/voip_rewrite_rule_sets.pm | 140 +++++ .../provisioning/Result/voip_rewrite_rules.pm | 161 ++++++ .../provisioning/Result/voip_rwrs_sequence.pm | 63 +++ .../provisioning/Result/voip_sound_files.pm | 145 +++++ .../provisioning/Result/voip_sound_handles.pm | 81 +++ .../provisioning/Result/voip_sound_sets.pm | 89 +++ .../provisioning/Result/voip_speed_dial.pm | 124 +++++ .../provisioning/Result/voip_subscribers.pm | 400 +++++++++++++ .../Result/voip_trusted_sources.pm | 125 +++++ .../Result/voip_usr_preferences.pm | 143 +++++ .../Schema/provisioning/Result/xmlgroups.pm | 87 +++ .../provisioning/Result/xmlhostgroups.pm | 121 ++++ .../Schema/provisioning/Result/xmlhosts.pm | 120 ++++ .../Schema/provisioning/Result/xmlqueue.pm | 110 ++++ lib/NGCP/Schema/sipstats.pm | 19 + lib/NGCP/Schema/sipstats/Result/mark.pm | 65 +++ .../Schema/sipstats/Result/message_packets.pm | 67 +++ lib/NGCP/Schema/sipstats/Result/messages.pm | 190 +++++++ lib/NGCP/Schema/sipstats/Result/packets.pm | 108 ++++ lib/NGCP/Schema/sipstats/Result/statistics.pm | 479 ++++++++++++++++ 143 files changed, 21463 insertions(+) create mode 100644 Build.PL create mode 100644 Changes create mode 100644 README create mode 100644 bin/ngcp-dump-schema create mode 100644 lib/NGCP/Schema.pm create mode 100644 lib/NGCP/Schema/accounting.pm create mode 100644 lib/NGCP/Schema/accounting/Result/acc.pm create mode 100644 lib/NGCP/Schema/accounting/Result/acc_backup.pm create mode 100644 lib/NGCP/Schema/accounting/Result/acc_trash.pm create mode 100644 lib/NGCP/Schema/accounting/Result/cdr.pm create mode 100644 lib/NGCP/Schema/accounting/Result/mark.pm create mode 100644 lib/NGCP/Schema/accounting/Result/prepaid_costs.pm create mode 100644 lib/NGCP/Schema/billing.pm create mode 100644 lib/NGCP/Schema/billing/Result/admins.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_fees.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_fees_history.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_mappings.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_peaktime_special.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_peaktime_weekdays.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_profiles.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_zones.pm create mode 100644 lib/NGCP/Schema/billing/Result/billing_zones_history.pm create mode 100644 lib/NGCP/Schema/billing/Result/contacts.pm create mode 100644 lib/NGCP/Schema/billing/Result/contract_balances.pm create mode 100644 lib/NGCP/Schema/billing/Result/contract_credits.pm create mode 100644 lib/NGCP/Schema/billing/Result/contract_registers.pm create mode 100644 lib/NGCP/Schema/billing/Result/contracts.pm create mode 100644 lib/NGCP/Schema/billing/Result/credit_payments.pm create mode 100644 lib/NGCP/Schema/billing/Result/customer_registers.pm create mode 100644 lib/NGCP/Schema/billing/Result/customers.pm create mode 100644 lib/NGCP/Schema/billing/Result/domain_resellers.pm create mode 100644 lib/NGCP/Schema/billing/Result/domains.pm create mode 100644 lib/NGCP/Schema/billing/Result/invoices.pm create mode 100644 lib/NGCP/Schema/billing/Result/lnp_numbers.pm create mode 100644 lib/NGCP/Schema/billing/Result/lnp_providers.pm create mode 100644 lib/NGCP/Schema/billing/Result/ncos_levels.pm create mode 100644 lib/NGCP/Schema/billing/Result/ncos_lnp_list.pm create mode 100644 lib/NGCP/Schema/billing/Result/ncos_pattern_list.pm create mode 100644 lib/NGCP/Schema/billing/Result/order_payments.pm create mode 100644 lib/NGCP/Schema/billing/Result/orders.pm create mode 100644 lib/NGCP/Schema/billing/Result/payments.pm create mode 100644 lib/NGCP/Schema/billing/Result/products.pm create mode 100644 lib/NGCP/Schema/billing/Result/resellers.pm create mode 100644 lib/NGCP/Schema/billing/Result/voip_intercept.pm create mode 100644 lib/NGCP/Schema/billing/Result/voip_number_block_resellers.pm create mode 100644 lib/NGCP/Schema/billing/Result/voip_number_blocks.pm create mode 100644 lib/NGCP/Schema/billing/Result/voip_numbers.pm create mode 100644 lib/NGCP/Schema/billing/Result/voip_subscribers.pm create mode 100644 lib/NGCP/Schema/carrier.pm create mode 100644 lib/NGCP/Schema/carrier/Result/contracts.pm create mode 100644 lib/NGCP/Schema/carrier/Result/credits.pm create mode 100644 lib/NGCP/Schema/carrier/Result/customers.pm create mode 100644 lib/NGCP/Schema/carrier/Result/interceptions.pm create mode 100644 lib/NGCP/Schema/carrier/Result/numbers.pm create mode 100644 lib/NGCP/Schema/carrier/Result/orders.pm create mode 100644 lib/NGCP/Schema/carrier/Result/payments.pm create mode 100644 lib/NGCP/Schema/carrier/Result/subscribers.pm create mode 100644 lib/NGCP/Schema/kamailio.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/acc.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/acc_backup.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/acc_trash.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/active_watchers.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/address.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/aliases.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dbaliases.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dialog.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dialog_vars.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dialplan.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dispatcher.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/dom_preferences.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/domain.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/domain_attrs.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/fax_destinations.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/fax_journal.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/fax_preferences.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/htable.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/lcr_gw.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/lcr_rule.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/lcr_rule_target.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/location.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/mobile_push_registrations.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/peer_preferences.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/presentity.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/pua.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/rls_presentity.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/rls_watchers.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/sems_registrations.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/silo.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/speed_dial.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/subscriber.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/trusted.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/usr_preferences.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/version.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/voicemail_spool.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/voicemail_users.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/watchers.pm create mode 100644 lib/NGCP/Schema/kamailio/Result/xcap.pm create mode 100644 lib/NGCP/Schema/ngcp.pm create mode 100644 lib/NGCP/Schema/ngcp/Result/cfg_schema.pm create mode 100644 lib/NGCP/Schema/ngcp/Result/db_schema.pm create mode 100644 lib/NGCP/Schema/provisioning.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/language_strings.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_aig_sequence.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_allowed_ip_groups.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cc_mappings.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cf_destination_sets.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cf_destinations.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cf_mappings.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cf_periods.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_cf_time_sets.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_contacts.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_dbaliases.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_dom_preferences.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_domains.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_fax_destinations.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_fax_preferences.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_peer_groups.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_peer_hosts.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_peer_preferences.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_peer_rules.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_preferences.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_preferences_enum.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_reminder.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_rewrite_rule_sets.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_rewrite_rules.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_rwrs_sequence.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_sound_files.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_sound_handles.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_sound_sets.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_speed_dial.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_subscribers.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_trusted_sources.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/voip_usr_preferences.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/xmlgroups.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/xmlhostgroups.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/xmlhosts.pm create mode 100644 lib/NGCP/Schema/provisioning/Result/xmlqueue.pm create mode 100644 lib/NGCP/Schema/sipstats.pm create mode 100644 lib/NGCP/Schema/sipstats/Result/mark.pm create mode 100644 lib/NGCP/Schema/sipstats/Result/message_packets.pm create mode 100644 lib/NGCP/Schema/sipstats/Result/messages.pm create mode 100644 lib/NGCP/Schema/sipstats/Result/packets.pm create mode 100644 lib/NGCP/Schema/sipstats/Result/statistics.pm diff --git a/Build.PL b/Build.PL new file mode 100644 index 00000000..2386e5bf --- /dev/null +++ b/Build.PL @@ -0,0 +1,16 @@ +use Module::Build qw(); +my $builder = Module::Build->new( + module_name => 'NGCP-Schema', + license => 'restrictive', + dist_author => 'Lars Dieckow ', + dist_version_from => 'lib/NGCP/Schema.pm', + requires => { + 'DBIx::Class::Schema::Loader' => 0, + 'File::Path' => 0, + 'MooseX::NonMoose' => 0, + 'NGCP' => 0, + 'Quantum::Superpositions' => 0, + }, + add_to_cleanup => ['NGCP-Schema-*'], +); +$builder->create_build_script; diff --git a/Changes b/Changes new file mode 100644 index 00000000..236ddbf3 --- /dev/null +++ b/Changes @@ -0,0 +1,9 @@ +=encoding UTF-8 + +=head1 NAME + +Changes - Revision history for NGCP-Schema + +=head2 1.000 2013-02-05 + +Initial release. diff --git a/README b/README new file mode 100644 index 00000000..977556c6 --- /dev/null +++ b/README @@ -0,0 +1,19 @@ +=encoding UTF-8 + +NGCP-Schema version 1.000 + +=head1 NAME + +README - basic information for users prior to downloading + +=head1 INSTALLATION + +See L. + +=head1 DEPENDENCIES + +See distribution meta file. + +=head1 LICENCE + +restricted diff --git a/bin/ngcp-dump-schema b/bin/ngcp-dump-schema new file mode 100644 index 00000000..2447d764 --- /dev/null +++ b/bin/ngcp-dump-schema @@ -0,0 +1,61 @@ +#!/usr/bin/perl +use Sipwise::Base; +use DBIx::Class::Schema::Loader qw(make_schema_at); +use File::Path qw(make_path); +use Quantum::Superpositions qw(any); + +my $dump_dir = 'lib'; +make_path $dump_dir; + +for my $db (qw(accounting billing carrier kamailio ngcp provisioning sipstats)) { + make_schema_at( + "NGCP::Schema::$db", + { + col_collision_map => 'column_%s', + dump_directory => $dump_dir, + filter_generated_code => sub { + my ($type, $class, $text) = @_; + my (@source, @pod); + my $in_pod = 0; + for my $line (split /(?<=\n)/, $text) { + next if $line eq any( + "use utf8;\n", + "use strict;\n", + "use warnings;\n", + "use Moose;\n", + "use MooseX::NonMoose;\n", + "use MooseX::MarkAsMethods autoclean => 1;\n", + ); + if ($line =~ /^=head/) { + $in_pod = 1; + } + if ($line =~ /^=cut/) { + $in_pod = 0; + next; + } + if ($in_pod) { + push @pod, $line; + } else { + push @source, $line; + } + } + my $package = shift @source; + @source = ( + $package, + "use Sipwise::Base;\n", + ($package =~ /::Result::/ ? "use MooseX::NonMoose;\n" : ()), + "our \$VERSION = '1.000';\n", + @source, + ); + @pod = ("=encoding UTF-8\n\n", @pod, "=cut\n") if @pod; + return join '', @source, @pod; + }, + moniker_map => λ{ $_[0] }, + quiet => 1, + use_moose => 1, + }, + [ + "dbi:mysql:dbname=$db", 'root' + ], + ); +} diff --git a/lib/NGCP/Schema.pm b/lib/NGCP/Schema.pm new file mode 100644 index 00000000..9ba93de2 --- /dev/null +++ b/lib/NGCP/Schema.pm @@ -0,0 +1,48 @@ +package NGCP::Schema; +use Sipwise::Base; +our $VERSION = '1.000'; + +__END__ + +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema - DBIC-derived ORM schema classes + +=head1 VERSION + +This document describes NGCP::Schema version 1.000 + +=head1 SYNOPSIS + + use NGCP::Schema::accounting; + use NGCP::Schema::billing; + use NGCP::Schema::carrier; + use NGCP::Schema::kamailio; + use NGCP::Schema::ngcp; + use NGCP::Schema::provisioning; + use NGCP::Schema::sipstats; + +=head1 DESCRIPTION + +See +L, +L, +L, +L, +L, +L, +L. + +=head1 BUGS AND LIMITATIONS + +L + +=head1 AUTHOR + +Lars Dieckow C<< >> + +=head1 LICENCE + +restricted diff --git a/lib/NGCP/Schema/accounting.pm b/lib/NGCP/Schema/accounting.pm new file mode 100644 index 00000000..eecbc858 --- /dev/null +++ b/lib/NGCP/Schema/accounting.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::accounting; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:32 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hvlv43Bpo+4OElqIE9da3A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/accounting/Result/acc.pm b/lib/NGCP/Schema/accounting/Result/acc.pm new file mode 100644 index 00000000..fa3d04dd --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/acc.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::accounting::Result::acc; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::acc + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:32 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WBU6oWZxMUyyvRxEK8JXkw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/accounting/Result/acc_backup.pm b/lib/NGCP/Schema/accounting/Result/acc_backup.pm new file mode 100644 index 00000000..5f536b2d --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/acc_backup.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::accounting::Result::acc_backup; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc_backup"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::acc_backup + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:32 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kO7bmZcRWeKDQAS1pTeO6A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/accounting/Result/acc_trash.pm b/lib/NGCP/Schema/accounting/Result/acc_trash.pm new file mode 100644 index 00000000..a4b7c9bc --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/acc_trash.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::accounting::Result::acc_trash; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc_trash"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::acc_trash + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:32 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q/vE8cwy80nUgh52K4M9+w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/accounting/Result/cdr.pm b/lib/NGCP/Schema/accounting/Result/cdr.pm new file mode 100644 index 00000000..21d3a5d0 --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/cdr.pm @@ -0,0 +1,525 @@ +package NGCP::Schema::accounting::Result::cdr; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("cdr"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "update_time", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "source_user_id", + { data_type => "char", is_nullable => 0, size => 36 }, + "source_provider_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "source_external_subscriber_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "source_external_contract_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "source_account_id", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "source_user", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "source_domain", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "source_cli", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "source_clir", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "source_ip", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "destination_user_id", + { data_type => "char", is_nullable => 0, size => 36 }, + "destination_provider_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "destination_external_subscriber_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "destination_external_contract_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "destination_account_id", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "destination_user", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "destination_domain", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "destination_user_dialed", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "destination_user_in", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "destination_domain_in", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "peer_auth_user", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "peer_auth_realm", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "call_type", + { + data_type => "enum", + default_value => "call", + extra => { list => ["call", "cfu", "cft", "cfb", "cfna"] }, + is_nullable => 0, + }, + "call_status", + { + data_type => "enum", + default_value => "ok", + extra => { + list => ["ok", "busy", "noanswer", "cancel", "offline", "timeout", "other"], + }, + is_nullable => 0, + }, + "call_code", + { data_type => "char", is_nullable => 0, size => 3 }, + "init_time", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "start_time", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "duration", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "call_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "carrier_cost", + { data_type => "decimal", is_nullable => 1, size => [10, 2] }, + "reseller_cost", + { data_type => "decimal", is_nullable => 1, size => [10, 2] }, + "customer_cost", + { data_type => "decimal", is_nullable => 1, size => [10, 2] }, + "carrier_free_time", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "reseller_free_time", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "customer_free_time", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "carrier_billing_fee_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "reseller_billing_fee_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "customer_billing_fee_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "carrier_billing_zone_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "reseller_billing_zone_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "customer_billing_zone_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "frag_carrier_onpeak", + { data_type => "tinyint", is_nullable => 1 }, + "frag_reseller_onpeak", + { data_type => "tinyint", is_nullable => 1 }, + "frag_customer_onpeak", + { data_type => "tinyint", is_nullable => 1 }, + "is_fragmented", + { data_type => "tinyint", is_nullable => 1 }, + "split", + { + data_type => "tinyint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "rated_at", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "rating_status", + { + data_type => "enum", + default_value => "unrated", + extra => { list => ["unrated", "ok", "failed"] }, + is_nullable => 0, + }, + "exported_at", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "export_status", + { + data_type => "enum", + default_value => "unexported", + extra => { list => ["unexported", "ok", "failed"] }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::cdr + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 update_time + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 source_user_id + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 source_provider_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 source_external_subscriber_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 source_external_contract_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 source_account_id + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 source_user + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 source_domain + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 source_cli + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 source_clir + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 source_ip + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 destination_user_id + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 destination_provider_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 destination_external_subscriber_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 destination_external_contract_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 destination_account_id + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 destination_user + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 destination_domain + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 destination_user_dialed + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 destination_user_in + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 destination_domain_in + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 peer_auth_user + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 peer_auth_realm + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 call_type + + data_type: 'enum' + default_value: 'call' + extra: {list => ["call","cfu","cft","cfb","cfna"]} + is_nullable: 0 + +=head2 call_status + + data_type: 'enum' + default_value: 'ok' + extra: {list => ["ok","busy","noanswer","cancel","offline","timeout","other"]} + is_nullable: 0 + +=head2 call_code + + data_type: 'char' + is_nullable: 0 + size: 3 + +=head2 init_time + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 start_time + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 duration + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 call_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 carrier_cost + + data_type: 'decimal' + is_nullable: 1 + size: [10,2] + +=head2 reseller_cost + + data_type: 'decimal' + is_nullable: 1 + size: [10,2] + +=head2 customer_cost + + data_type: 'decimal' + is_nullable: 1 + size: [10,2] + +=head2 carrier_free_time + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 reseller_free_time + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 customer_free_time + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 carrier_billing_fee_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 reseller_billing_fee_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 customer_billing_fee_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 carrier_billing_zone_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 reseller_billing_zone_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 customer_billing_zone_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 frag_carrier_onpeak + + data_type: 'tinyint' + is_nullable: 1 + +=head2 frag_reseller_onpeak + + data_type: 'tinyint' + is_nullable: 1 + +=head2 frag_customer_onpeak + + data_type: 'tinyint' + is_nullable: 1 + +=head2 is_fragmented + + data_type: 'tinyint' + is_nullable: 1 + +=head2 split + + data_type: 'tinyint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 rated_at + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 rating_status + + data_type: 'enum' + default_value: 'unrated' + extra: {list => ["unrated","ok","failed"]} + is_nullable: 0 + +=head2 exported_at + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 export_status + + data_type: 'enum' + default_value: 'unexported' + extra: {list => ["unexported","ok","failed"]} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:33 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d7Lt2OCihnsuWqpZG4ik2A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/accounting/Result/mark.pm b/lib/NGCP/Schema/accounting/Result/mark.pm new file mode 100644 index 00000000..852c230f --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/mark.pm @@ -0,0 +1,79 @@ +package NGCP::Schema::accounting::Result::mark; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("mark"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "collector", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "acc_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::mark + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 collector + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 acc_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:33 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+as/Fw2Z3UO81Cq28dZZ7w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/accounting/Result/prepaid_costs.pm b/lib/NGCP/Schema/accounting/Result/prepaid_costs.pm new file mode 100644 index 00000000..0f03c503 --- /dev/null +++ b/lib/NGCP/Schema/accounting/Result/prepaid_costs.pm @@ -0,0 +1,100 @@ +package NGCP::Schema::accounting::Result::prepaid_costs; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("prepaid_costs"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "call_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "cost", + { data_type => "double precision", is_nullable => 0 }, + "free_time_used", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::accounting::Result::prepaid_costs + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 call_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 cost + + data_type: 'double precision' + is_nullable: 0 + +=head2 free_time_used + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:33 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qhLui54hmrUYmOoeOwr+cw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing.pm b/lib/NGCP/Schema/billing.pm new file mode 100644 index 00000000..ada30c91 --- /dev/null +++ b/lib/NGCP/Schema/billing.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::billing; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sx/D2d16t8N9+cdwKfYW5g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/billing/Result/admins.pm b/lib/NGCP/Schema/billing/Result/admins.pm new file mode 100644 index 00000000..6bf9d256 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/admins.pm @@ -0,0 +1,183 @@ +package NGCP::Schema::billing::Result::admins; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("admins"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "login", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "md5pass", + { data_type => "char", is_nullable => 1, size => 32 }, + "is_master", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "is_superuser", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "is_active", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "read_only", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "show_passwords", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "call_data", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "lawful_intercept", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("login_idx", ["login"]); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::admins + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 login + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 md5pass + + data_type: 'char' + is_nullable: 1 + size: 32 + +=head2 is_master + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 is_superuser + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 is_active + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 read_only + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 show_passwords + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 call_data + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 lawful_intercept + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ne0wYz4BXSg/vM3vjXwQ5Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_fees.pm b/lib/NGCP/Schema/billing/Result/billing_fees.pm new file mode 100644 index 00000000..9feb4fa2 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_fees.pm @@ -0,0 +1,278 @@ +package NGCP::Schema::billing::Result::billing_fees; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_fees"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "billing_zone_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "type", + { + data_type => "enum", + default_value => "call", + extra => { list => ["call", "sms"] }, + is_nullable => 0, + }, + "onpeak_init_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_init_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "onpeak_follow_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_follow_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "offpeak_init_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_init_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "offpeak_follow_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_follow_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "use_free_time", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint( + "profdestype_idx", + ["billing_profile_id", "destination", "type"], +); + + +__PACKAGE__->has_many( + "billing_fees_histories", + "NGCP::Schema::billing::Result::billing_fees_history", + { "foreign.bf_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "billing_zone", + "NGCP::Schema::billing::Result::billing_zones", + { id => "billing_zone_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_fees + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 billing_zone_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 type + + data_type: 'enum' + default_value: 'call' + extra: {list => ["call","sms"]} + is_nullable: 0 + +=head2 onpeak_init_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 onpeak_init_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 onpeak_follow_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 onpeak_follow_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 offpeak_init_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 offpeak_init_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 offpeak_follow_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 offpeak_follow_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 use_free_time + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_fees_histories + +Type: has_many + +Related object: L + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=head2 billing_zone + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BcdPTk3zOHg+ey/voZYahg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_fees_history.pm b/lib/NGCP/Schema/billing/Result/billing_fees_history.pm new file mode 100644 index 00000000..ee9b9394 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_fees_history.pm @@ -0,0 +1,257 @@ +package NGCP::Schema::billing::Result::billing_fees_history; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_fees_history"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "bf_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "billing_profile_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "billing_zones_history_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "type", + { + data_type => "enum", + default_value => "call", + extra => { list => ["call", "sms"] }, + is_nullable => 0, + }, + "onpeak_init_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_init_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "onpeak_follow_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "onpeak_follow_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "offpeak_init_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_init_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "offpeak_follow_rate", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "offpeak_follow_interval", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "use_free_time", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "bf", + "NGCP::Schema::billing::Result::billing_fees", + { id => "bf_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "NO ACTION", + }, +); + + +__PACKAGE__->belongs_to( + "billing_zones_history", + "NGCP::Schema::billing::Result::billing_zones_history", + { id => "billing_zones_history_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_fees_history + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 bf_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 billing_zones_history_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 type + + data_type: 'enum' + default_value: 'call' + extra: {list => ["call","sms"]} + is_nullable: 0 + +=head2 onpeak_init_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 onpeak_init_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 onpeak_follow_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 onpeak_follow_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 offpeak_init_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 offpeak_init_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 offpeak_follow_rate + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 offpeak_follow_interval + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 use_free_time + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 bf + +Type: belongs_to + +Related object: L + +=head2 billing_zones_history + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e5P+NuayyMen2ukZlXAazA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_mappings.pm b/lib/NGCP/Schema/billing/Result/billing_mappings.pm new file mode 100644 index 00000000..f39f9110 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_mappings.pm @@ -0,0 +1,183 @@ +package NGCP::Schema::billing::Result::billing_mappings; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_mappings"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "start_date", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "end_date", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "product_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::billing::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "product", + "NGCP::Schema::billing::Result::products", + { id => "product_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_mappings + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 start_date + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 end_date + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 product_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 product + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FCp9BwSNkHyj6bw/6DGRGA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_peaktime_special.pm b/lib/NGCP/Schema/billing/Result/billing_peaktime_special.pm new file mode 100644 index 00000000..8b281d04 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_peaktime_special.pm @@ -0,0 +1,117 @@ +package NGCP::Schema::billing::Result::billing_peaktime_special; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_peaktime_special"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "start", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "end", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_peaktime_special + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 start + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 end + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sF71tPxvuJwbTYClaP/H4w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_peaktime_weekdays.pm b/lib/NGCP/Schema/billing/Result/billing_peaktime_weekdays.pm new file mode 100644 index 00000000..5a365b35 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_peaktime_weekdays.pm @@ -0,0 +1,115 @@ +package NGCP::Schema::billing::Result::billing_peaktime_weekdays; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_peaktime_weekdays"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "weekday", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 0 }, + "start", + { data_type => "time", is_nullable => 1 }, + "end", + { data_type => "time", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_peaktime_weekdays + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 weekday + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 start + + data_type: 'time' + is_nullable: 1 + +=head2 end + + data_type: 'time' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5on1Unwvzl3CTfeA/RTbrQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_profiles.pm b/lib/NGCP/Schema/billing/Result/billing_profiles.pm new file mode 100644 index 00000000..35105b4d --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_profiles.pm @@ -0,0 +1,358 @@ +package NGCP::Schema::billing::Result::billing_profiles; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_profiles"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "handle", + { data_type => "varchar", is_nullable => 0, size => 63 }, + "name", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "prepaid", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "interval_charge", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "interval_free_time", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "interval_free_cash", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "interval_unit", + { + data_type => "enum", + default_value => "month", + extra => { list => ["week", "month"] }, + is_nullable => 0, + }, + "interval_count", + { + data_type => "tinyint", + default_value => 1, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "fraud_interval_limit", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "fraud_interval_lock", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "fraud_interval_notify", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "fraud_daily_limit", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "fraud_daily_lock", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "fraud_daily_notify", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "currency", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "vat_rate", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "vat_included", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("reshand_idx", ["reseller_id", "handle"]); + + +__PACKAGE__->add_unique_constraint("resnam_idx", ["reseller_id", "name"]); + + +__PACKAGE__->has_many( + "billing_fees", + "NGCP::Schema::billing::Result::billing_fees", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_mappings", + "NGCP::Schema::billing::Result::billing_mappings", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_peaktime_specials", + "NGCP::Schema::billing::Result::billing_peaktime_special", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_peaktime_weekdays", + "NGCP::Schema::billing::Result::billing_peaktime_weekdays", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_zones", + "NGCP::Schema::billing::Result::billing_zones", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "products", + "NGCP::Schema::billing::Result::products", + { "foreign.billing_profile_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_profiles + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 handle + + data_type: 'varchar' + is_nullable: 0 + size: 63 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 prepaid + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 interval_charge + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 interval_free_time + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 interval_free_cash + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 interval_unit + + data_type: 'enum' + default_value: 'month' + extra: {list => ["week","month"]} + is_nullable: 0 + +=head2 interval_count + + data_type: 'tinyint' + default_value: 1 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 fraud_interval_limit + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 fraud_interval_lock + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 fraud_interval_notify + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 fraud_daily_limit + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 fraud_daily_lock + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 fraud_daily_notify + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 currency + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 vat_rate + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 vat_included + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_fees + +Type: has_many + +Related object: L + +=head2 billing_mappings + +Type: has_many + +Related object: L + +=head2 billing_peaktime_specials + +Type: has_many + +Related object: L + +=head2 billing_peaktime_weekdays + +Type: has_many + +Related object: L + +=head2 billing_zones + +Type: has_many + +Related object: L + +=head2 products + +Type: has_many + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:emMOBHhyqXnLSywpWbT77w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_zones.pm b/lib/NGCP/Schema/billing/Result/billing_zones.pm new file mode 100644 index 00000000..5dac9f20 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_zones.pm @@ -0,0 +1,154 @@ +package NGCP::Schema::billing::Result::billing_zones; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_zones"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "zone", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "detail", + { data_type => "varchar", is_nullable => 1, size => 127 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("profnamdes_idx", ["billing_profile_id", "zone", "detail"]); + + +__PACKAGE__->has_many( + "billing_fees", + "NGCP::Schema::billing::Result::billing_fees", + { "foreign.billing_zone_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "billing_zones_histories", + "NGCP::Schema::billing::Result::billing_zones_history", + { "foreign.bz_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_zones + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 zone + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 detail + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_fees + +Type: has_many + +Related object: L + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=head2 billing_zones_histories + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JJqCy0Nr20KaKxmpa0cTnA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/billing_zones_history.pm b/lib/NGCP/Schema/billing/Result/billing_zones_history.pm new file mode 100644 index 00000000..e692d74b --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/billing_zones_history.pm @@ -0,0 +1,136 @@ +package NGCP::Schema::billing::Result::billing_zones_history; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("billing_zones_history"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "bz_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "billing_profile_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "zone", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "detail", + { data_type => "varchar", is_nullable => 1, size => 127 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "billing_fees_histories", + "NGCP::Schema::billing::Result::billing_fees_history", + { "foreign.billing_zones_history_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "bz", + "NGCP::Schema::billing::Result::billing_zones", + { id => "bz_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "NO ACTION", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::billing_zones_history + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 bz_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 zone + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 detail + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_fees_histories + +Type: has_many + +Related object: L + +=head2 bz + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z4hz6z/o7CmN0wFIac2c0w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/contacts.pm b/lib/NGCP/Schema/billing/Result/contacts.pm new file mode 100644 index 00000000..2f6100f1 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/contacts.pm @@ -0,0 +1,278 @@ +package NGCP::Schema::billing::Result::contacts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contacts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "gender", + { + data_type => "enum", + extra => { list => ["male", "female"] }, + is_nullable => 1, + }, + "firstname", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "lastname", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "comregnum", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "company", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "street", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "postcode", + { data_type => "integer", is_nullable => 1 }, + "city", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "country", + { data_type => "char", is_nullable => 1, size => 2 }, + "phonenumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "mobilenumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "email", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "newsletter", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, + "faxnumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "contracts", + "NGCP::Schema::billing::Result::contracts", + { "foreign.contact_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "customers_comm_contacts", + "NGCP::Schema::billing::Result::customers", + { "foreign.comm_contact_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "customers_contacts", + "NGCP::Schema::billing::Result::customers", + { "foreign.contact_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "customers_tech_contacts", + "NGCP::Schema::billing::Result::customers", + { "foreign.tech_contact_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "orders", + "NGCP::Schema::billing::Result::orders", + { "foreign.delivery_contact_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::contacts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 gender + + data_type: 'enum' + extra: {list => ["male","female"]} + is_nullable: 1 + +=head2 firstname + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 lastname + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 comregnum + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 company + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 street + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 postcode + + data_type: 'integer' + is_nullable: 1 + +=head2 city + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 country + + data_type: 'char' + is_nullable: 1 + size: 2 + +=head2 phonenumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 mobilenumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 email + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 newsletter + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head2 faxnumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contracts + +Type: has_many + +Related object: L + +=head2 customers_comm_contacts + +Type: has_many + +Related object: L + +=head2 customers_contacts + +Type: has_many + +Related object: L + +=head2 customers_tech_contacts + +Type: has_many + +Related object: L + +=head2 orders + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qhvlrezAnVm47eZroTWxHA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/contract_balances.pm b/lib/NGCP/Schema/billing/Result/contract_balances.pm new file mode 100644 index 00000000..cf1fca25 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/contract_balances.pm @@ -0,0 +1,194 @@ +package NGCP::Schema::billing::Result::contract_balances; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contract_balances"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "cash_balance", + { data_type => "double precision", is_nullable => 1 }, + "cash_balance_interval", + { data_type => "double precision", default_value => 0, is_nullable => 0 }, + "free_time_balance", + { data_type => "integer", is_nullable => 1 }, + "free_time_balance_interval", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "start", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "end", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "invoice_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::billing::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "contract_credits", + "NGCP::Schema::billing::Result::contract_credits", + { "foreign.balance_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "invoice", + "NGCP::Schema::billing::Result::invoices", + { id => "invoice_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::contract_balances + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 cash_balance + + data_type: 'double precision' + is_nullable: 1 + +=head2 cash_balance_interval + + data_type: 'double precision' + default_value: 0 + is_nullable: 0 + +=head2 free_time_balance + + data_type: 'integer' + is_nullable: 1 + +=head2 free_time_balance_interval + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 start + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 end + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 invoice_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 contract_credits + +Type: has_many + +Related object: L + +=head2 invoice + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YHTfB8mZ+FhTcqpTejBVCw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/contract_credits.pm b/lib/NGCP/Schema/billing/Result/contract_credits.pm new file mode 100644 index 00000000..f7c3f005 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/contract_credits.pm @@ -0,0 +1,163 @@ +package NGCP::Schema::billing::Result::contract_credits; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contract_credits"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "balance_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "state", + { + data_type => "enum", + default_value => "init", + extra => { list => ["init", "transact", "charged", "failed", "success"] }, + is_nullable => 0, + }, + "amount", + { data_type => "double precision", is_nullable => 1 }, + "reason", + { data_type => "text", is_nullable => 1 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "balance", + "NGCP::Schema::billing::Result::contract_balances", + { id => "balance_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "credit_payments", + "NGCP::Schema::billing::Result::credit_payments", + { "foreign.credit_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::contract_credits + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 balance_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 state + + data_type: 'enum' + default_value: 'init' + extra: {list => ["init","transact","charged","failed","success"]} + is_nullable: 0 + +=head2 amount + + data_type: 'double precision' + is_nullable: 1 + +=head2 reason + + data_type: 'text' + is_nullable: 1 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 balance + +Type: belongs_to + +Related object: L + +=head2 credit_payments + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A7H9vSKNF5ouZlB6GlTkYg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/contract_registers.pm b/lib/NGCP/Schema/billing/Result/contract_registers.pm new file mode 100644 index 00000000..d4e1787b --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/contract_registers.pm @@ -0,0 +1,116 @@ +package NGCP::Schema::billing::Result::contract_registers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contract_registers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "actor", + { data_type => "varchar", is_nullable => 1, size => 15 }, + "type", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "data", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::billing::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::contract_registers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 actor + + data_type: 'varchar' + is_nullable: 1 + size: 15 + +=head2 type + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 data + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4M+qzIJAGNdiUjC1rTMf/Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/contracts.pm b/lib/NGCP/Schema/billing/Result/contracts.pm new file mode 100644 index 00000000..83739330 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/contracts.pm @@ -0,0 +1,341 @@ +package NGCP::Schema::billing::Result::contracts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contracts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "customer_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "contact_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "order_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "status", + { + data_type => "enum", + default_value => "active", + extra => { list => ["pending", "active", "locked", "terminated"] }, + is_nullable => 0, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, + "activate_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "terminate_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->might_have( + "active_reseller", + "NGCP::Schema::billing::Result::resellers", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_mappings", + "NGCP::Schema::billing::Result::billing_mappings", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "contact", + "NGCP::Schema::billing::Result::contacts", + { id => "contact_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "contract_balances", + "NGCP::Schema::billing::Result::contract_balances", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "contract_registers", + "NGCP::Schema::billing::Result::contract_registers", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "customer", + "NGCP::Schema::billing::Result::customers", + { id => "customer_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "order", + "NGCP::Schema::billing::Result::orders", + { id => "order_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "voip_subscribers", + "NGCP::Schema::billing::Result::voip_subscribers", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::contracts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 customer_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 contact_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 order_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 status + + data_type: 'enum' + default_value: 'active' + extra: {list => ["pending","active","locked","terminated"]} + is_nullable: 0 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head2 activate_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 terminate_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 active_reseller + +Type: might_have + +Related object: L + +=head2 billing_mappings + +Type: has_many + +Related object: L + +=head2 contact + +Type: belongs_to + +Related object: L + +=head2 contract_balances + +Type: has_many + +Related object: L + +=head2 contract_registers + +Type: has_many + +Related object: L + +=head2 customer + +Type: belongs_to + +Related object: L + +=head2 order + +Type: belongs_to + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=head2 voip_subscribers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d1xOUxPPJ4iKqGYb9W8+GA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/credit_payments.pm b/lib/NGCP/Schema/billing/Result/credit_payments.pm new file mode 100644 index 00000000..cce9c2a7 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/credit_payments.pm @@ -0,0 +1,121 @@ +package NGCP::Schema::billing::Result::credit_payments; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("credit_payments"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "credit_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "payment_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "credit", + "NGCP::Schema::billing::Result::contract_credits", + { id => "credit_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "payment", + "NGCP::Schema::billing::Result::payments", + { id => "payment_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::credit_payments + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 credit_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 payment_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 credit + +Type: belongs_to + +Related object: L + +=head2 payment + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vioTfVbJ2E3QISSqNcnuxQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/customer_registers.pm b/lib/NGCP/Schema/billing/Result/customer_registers.pm new file mode 100644 index 00000000..fc40afa2 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/customer_registers.pm @@ -0,0 +1,116 @@ +package NGCP::Schema::billing::Result::customer_registers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("customer_registers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "customer_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "actor", + { data_type => "varchar", is_nullable => 1, size => 15 }, + "type", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "data", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "customer", + "NGCP::Schema::billing::Result::customers", + { id => "customer_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::customer_registers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 customer_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 actor + + data_type: 'varchar' + is_nullable: 1 + size: 15 + +=head2 type + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 data + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 customer + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BeiBkDEOQM7mNiOsNMMR6g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/customers.pm b/lib/NGCP/Schema/billing/Result/customers.pm new file mode 100644 index 00000000..2b16561d --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/customers.pm @@ -0,0 +1,314 @@ +package NGCP::Schema::billing::Result::customers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("customers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "shopuser", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "shoppass", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "business", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "contact_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "tech_contact_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "comm_contact_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("reseller_id", ["reseller_id", "shopuser"]); + + +__PACKAGE__->belongs_to( + "comm_contact", + "NGCP::Schema::billing::Result::contacts", + { id => "comm_contact_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "contact", + "NGCP::Schema::billing::Result::contacts", + { id => "contact_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "contracts", + "NGCP::Schema::billing::Result::contracts", + { "foreign.customer_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "customer_registers", + "NGCP::Schema::billing::Result::customer_registers", + { "foreign.customer_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "orders", + "NGCP::Schema::billing::Result::orders", + { "foreign.customer_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "tech_contact", + "NGCP::Schema::billing::Result::contacts", + { id => "tech_contact_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::customers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 shopuser + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 shoppass + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 business + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 contact_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 tech_contact_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 comm_contact_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 comm_contact + +Type: belongs_to + +Related object: L + +=head2 contact + +Type: belongs_to + +Related object: L + +=head2 contracts + +Type: has_many + +Related object: L + +=head2 customer_registers + +Type: has_many + +Related object: L + +=head2 orders + +Type: has_many + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=head2 tech_contact + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FO/KqKp6Eih98U9RGz0Opw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/domain_resellers.pm b/lib/NGCP/Schema/billing/Result/domain_resellers.pm new file mode 100644 index 00000000..f9b538a1 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/domain_resellers.pm @@ -0,0 +1,121 @@ +package NGCP::Schema::billing::Result::domain_resellers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("domain_resellers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "domain_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "domain", + "NGCP::Schema::billing::Result::domains", + { id => "domain_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::domain_resellers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 domain_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 domain + +Type: belongs_to + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:INZADf8ubjVQ0+b09SP8yQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/domains.pm b/lib/NGCP/Schema/billing/Result/domains.pm new file mode 100644 index 00000000..680055ca --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/domains.pm @@ -0,0 +1,114 @@ +package NGCP::Schema::billing::Result::domains; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("domains"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 127 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]); + + +__PACKAGE__->has_many( + "domain_resellers", + "NGCP::Schema::billing::Result::domain_resellers", + { "foreign.domain_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_subscribers", + "NGCP::Schema::billing::Result::voip_subscribers", + { "foreign.domain_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::domains + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 domain_resellers + +Type: has_many + +Related object: L + +=head2 voip_subscribers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1bv/Q+wYBvYf4y6zE6YRqg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/invoices.pm b/lib/NGCP/Schema/billing/Result/invoices.pm new file mode 100644 index 00000000..220b5899 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/invoices.pm @@ -0,0 +1,141 @@ +package NGCP::Schema::billing::Result::invoices; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("invoices"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "year", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "month", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 0 }, + "serial", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "data", + { data_type => "blob", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("yms_idx", ["year", "month", "serial"]); + + +__PACKAGE__->has_many( + "contract_balances", + "NGCP::Schema::billing::Result::contract_balances", + { "foreign.invoice_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "orders", + "NGCP::Schema::billing::Result::orders", + { "foreign.invoice_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::invoices + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 year + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 month + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 serial + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 data + + data_type: 'blob' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract_balances + +Type: has_many + +Related object: L + +=head2 orders + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yn0yX/QE0hBYDE7mURm3aw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/lnp_numbers.pm b/lib/NGCP/Schema/billing/Result/lnp_numbers.pm new file mode 100644 index 00000000..cc2f6a23 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/lnp_numbers.pm @@ -0,0 +1,125 @@ +package NGCP::Schema::billing::Result::lnp_numbers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("lnp_numbers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "number", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "lnp_provider_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "start", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "end", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "lnp_provider", + "NGCP::Schema::billing::Result::lnp_providers", + { id => "lnp_provider_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::lnp_numbers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 number + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 lnp_provider_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 start + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 end + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 lnp_provider + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KrkvSlJ0VQHGQh2ZiEEaKw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/lnp_providers.pm b/lib/NGCP/Schema/billing/Result/lnp_providers.pm new file mode 100644 index 00000000..77b6c85a --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/lnp_providers.pm @@ -0,0 +1,95 @@ +package NGCP::Schema::billing::Result::lnp_providers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("lnp_providers"); + + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "name", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "lnp_numbers", + "NGCP::Schema::billing::Result::lnp_numbers", + { "foreign.lnp_provider_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "ncos_lnp_lists", + "NGCP::Schema::billing::Result::ncos_lnp_list", + { "foreign.lnp_provider_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::lnp_providers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 lnp_numbers + +Type: has_many + +Related object: L + +=head2 ncos_lnp_lists + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UbJznkchqDnY20MjvEOE5Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/ncos_levels.pm b/lib/NGCP/Schema/billing/Result/ncos_levels.pm new file mode 100644 index 00000000..48a1bc91 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/ncos_levels.pm @@ -0,0 +1,178 @@ +package NGCP::Schema::billing::Result::ncos_levels; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("ncos_levels"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "level", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "mode", + { + data_type => "enum", + default_value => "blacklist", + extra => { list => ["blacklist", "whitelist"] }, + is_nullable => 0, + }, + "local_ac", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "description", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("reslev_idx", ["reseller_id", "level"]); + + +__PACKAGE__->has_many( + "ncos_lnp_lists", + "NGCP::Schema::billing::Result::ncos_lnp_list", + { "foreign.ncos_level_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "ncos_pattern_lists", + "NGCP::Schema::billing::Result::ncos_pattern_list", + { "foreign.ncos_level_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::ncos_levels + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 level + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 mode + + data_type: 'enum' + default_value: 'blacklist' + extra: {list => ["blacklist","whitelist"]} + is_nullable: 0 + +=head2 local_ac + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 description + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 ncos_lnp_lists + +Type: has_many + +Related object: L + +=head2 ncos_pattern_lists + +Type: has_many + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zOJjzSjMqgLosv8PZPo7uw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/ncos_lnp_list.pm b/lib/NGCP/Schema/billing/Result/ncos_lnp_list.pm new file mode 100644 index 00000000..cbaeffc7 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/ncos_lnp_list.pm @@ -0,0 +1,143 @@ +package NGCP::Schema::billing::Result::ncos_lnp_list; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("ncos_lnp_list"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "ncos_level_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "lnp_provider_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "description", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("levpro_idx", ["ncos_level_id", "lnp_provider_id"]); + + +__PACKAGE__->belongs_to( + "lnp_provider", + "NGCP::Schema::billing::Result::lnp_providers", + { id => "lnp_provider_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "ncos_level", + "NGCP::Schema::billing::Result::ncos_levels", + { id => "ncos_level_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::ncos_lnp_list + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 ncos_level_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 lnp_provider_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 description + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 lnp_provider + +Type: belongs_to + +Related object: L + +=head2 ncos_level + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+mDVmmWdXEXu5seAHpwOcA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/ncos_pattern_list.pm b/lib/NGCP/Schema/billing/Result/ncos_pattern_list.pm new file mode 100644 index 00000000..911e5307 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/ncos_pattern_list.pm @@ -0,0 +1,123 @@ +package NGCP::Schema::billing::Result::ncos_pattern_list; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("ncos_pattern_list"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "ncos_level_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "pattern", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "description", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("levpat_idx", ["ncos_level_id", "pattern"]); + + +__PACKAGE__->belongs_to( + "ncos_level", + "NGCP::Schema::billing::Result::ncos_levels", + { id => "ncos_level_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::ncos_pattern_list + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 ncos_level_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 pattern + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 description + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 ncos_level + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kqutl9DMKs+Apo41YwkRhA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/order_payments.pm b/lib/NGCP/Schema/billing/Result/order_payments.pm new file mode 100644 index 00000000..7293a9df --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/order_payments.pm @@ -0,0 +1,121 @@ +package NGCP::Schema::billing::Result::order_payments; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("order_payments"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "order_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "payment_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "order", + "NGCP::Schema::billing::Result::orders", + { id => "order_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "payment", + "NGCP::Schema::billing::Result::payments", + { id => "payment_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::order_payments + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 order_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 payment_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 order + +Type: belongs_to + +Related object: L + +=head2 payment + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hum4Q7ejxPlVshpruumW0g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/orders.pm b/lib/NGCP/Schema/billing/Result/orders.pm new file mode 100644 index 00000000..a166c057 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/orders.pm @@ -0,0 +1,303 @@ +package NGCP::Schema::billing::Result::orders; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("orders"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "customer_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "delivery_contact_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "type", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "state", + { + data_type => "enum", + default_value => "init", + extra => { list => ["init", "transact", "failed", "success"] }, + is_nullable => 0, + }, + "value", + { data_type => "integer", is_nullable => 1 }, + "shipping_costs", + { data_type => "integer", is_nullable => 1 }, + "invoice_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, + "complete_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "contracts", + "NGCP::Schema::billing::Result::contracts", + { "foreign.order_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "customer", + "NGCP::Schema::billing::Result::customers", + { id => "customer_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "delivery_contact", + "NGCP::Schema::billing::Result::contacts", + { id => "delivery_contact_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "invoice", + "NGCP::Schema::billing::Result::invoices", + { id => "invoice_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "order_payments", + "NGCP::Schema::billing::Result::order_payments", + { "foreign.order_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::orders + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 customer_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 delivery_contact_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 type + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 state + + data_type: 'enum' + default_value: 'init' + extra: {list => ["init","transact","failed","success"]} + is_nullable: 0 + +=head2 value + + data_type: 'integer' + is_nullable: 1 + +=head2 shipping_costs + + data_type: 'integer' + is_nullable: 1 + +=head2 invoice_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head2 complete_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contracts + +Type: has_many + +Related object: L + +=head2 customer + +Type: belongs_to + +Related object: L + +=head2 delivery_contact + +Type: belongs_to + +Related object: L + +=head2 invoice + +Type: belongs_to + +Related object: L + +=head2 order_payments + +Type: has_many + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6TGqYmluDQ+Igvag2UbDWA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/payments.pm b/lib/NGCP/Schema/billing/Result/payments.pm new file mode 100644 index 00000000..17baa1b8 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/payments.pm @@ -0,0 +1,186 @@ +package NGCP::Schema::billing::Result::payments; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("payments"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "amount", + { data_type => "integer", is_nullable => 1 }, + "type", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "state", + { + data_type => "enum", + extra => { list => ["init", "transact", "failed", "success"] }, + is_nullable => 1, + }, + "mpaytid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "status", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "errno", + { data_type => "integer", is_nullable => 1 }, + "returncode", + { data_type => "varchar", is_nullable => 1, size => 63 }, + "externalstatus", + { data_type => "text", is_nullable => 1 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "credit_payments", + "NGCP::Schema::billing::Result::credit_payments", + { "foreign.payment_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "order_payments", + "NGCP::Schema::billing::Result::order_payments", + { "foreign.payment_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::payments + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 amount + + data_type: 'integer' + is_nullable: 1 + +=head2 type + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 state + + data_type: 'enum' + extra: {list => ["init","transact","failed","success"]} + is_nullable: 1 + +=head2 mpaytid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 status + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 errno + + data_type: 'integer' + is_nullable: 1 + +=head2 returncode + + data_type: 'varchar' + is_nullable: 1 + size: 63 + +=head2 externalstatus + + data_type: 'text' + is_nullable: 1 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 credit_payments + +Type: has_many + +Related object: L + +=head2 order_payments + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mfcyjayOy7NM2MlgTn0f2g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/products.pm b/lib/NGCP/Schema/billing/Result/products.pm new file mode 100644 index 00000000..e8990abe --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/products.pm @@ -0,0 +1,233 @@ +package NGCP::Schema::billing::Result::products; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("products"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "class", + { + data_type => "enum", + extra => { + list => [ + "sippeering", + "pstnpeering", + "reseller", + "voip", + "hardware", + "auxiliary", + ], + }, + is_nullable => 0, + }, + "handle", + { data_type => "varchar", is_nullable => 0, size => 63 }, + "name", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "on_sale", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "price", + { data_type => "double precision", is_nullable => 1 }, + "weight", + { data_type => "mediumint", extra => { unsigned => 1 }, is_nullable => 1 }, + "billing_profile_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("reshand_idx", ["reseller_id", "handle"]); + + +__PACKAGE__->add_unique_constraint("resnam_idx", ["reseller_id", "name"]); + + +__PACKAGE__->has_many( + "billing_mappings", + "NGCP::Schema::billing::Result::billing_mappings", + { "foreign.product_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "billing_profile", + "NGCP::Schema::billing::Result::billing_profiles", + { id => "billing_profile_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::products + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 class + + data_type: 'enum' + extra: {list => ["sippeering","pstnpeering","reseller","voip","hardware","auxiliary"]} + is_nullable: 0 + +=head2 handle + + data_type: 'varchar' + is_nullable: 0 + size: 63 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 on_sale + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 price + + data_type: 'double precision' + is_nullable: 1 + +=head2 weight + + data_type: 'mediumint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 billing_profile_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 billing_mappings + +Type: has_many + +Related object: L + +=head2 billing_profile + +Type: belongs_to + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sh8mk8IkcCLjAobMb9jNIA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/resellers.pm b/lib/NGCP/Schema/billing/Result/resellers.pm new file mode 100644 index 00000000..fee3da8f --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/resellers.pm @@ -0,0 +1,293 @@ +package NGCP::Schema::billing::Result::resellers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("resellers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 63 }, + "status", + { + data_type => "enum", + default_value => "active", + extra => { list => ["active", "locked", "terminated"] }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("contractid_idx", ["contract_id"]); + + +__PACKAGE__->add_unique_constraint("name_idx", ["name"]); + + +__PACKAGE__->has_many( + "admins", + "NGCP::Schema::billing::Result::admins", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "billing_profiles", + "NGCP::Schema::billing::Result::billing_profiles", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::billing::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "contracts", + "NGCP::Schema::billing::Result::contracts", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "customers", + "NGCP::Schema::billing::Result::customers", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "domain_resellers", + "NGCP::Schema::billing::Result::domain_resellers", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "ncos_levels", + "NGCP::Schema::billing::Result::ncos_levels", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "orders", + "NGCP::Schema::billing::Result::orders", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "products", + "NGCP::Schema::billing::Result::products", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_intercepts", + "NGCP::Schema::billing::Result::voip_intercept", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_number_block_resellers", + "NGCP::Schema::billing::Result::voip_number_block_resellers", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_numbers", + "NGCP::Schema::billing::Result::voip_numbers", + { "foreign.reseller_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::resellers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 63 + +=head2 status + + data_type: 'enum' + default_value: 'active' + extra: {list => ["active","locked","terminated"]} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 admins + +Type: has_many + +Related object: L + +=head2 billing_profiles + +Type: has_many + +Related object: L + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 contracts + +Type: has_many + +Related object: L + +=head2 customers + +Type: has_many + +Related object: L + +=head2 domain_resellers + +Type: has_many + +Related object: L + +=head2 ncos_levels + +Type: has_many + +Related object: L + +=head2 orders + +Type: has_many + +Related object: L + +=head2 products + +Type: has_many + +Related object: L + +=head2 voip_intercepts + +Type: has_many + +Related object: L + +=head2 voip_number_block_resellers + +Type: has_many + +Related object: L + +=head2 voip_numbers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CKLv7fywXx/FC8lgYy+C5A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/voip_intercept.pm b/lib/NGCP/Schema/billing/Result/voip_intercept.pm new file mode 100644 index 00000000..83dc8371 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/voip_intercept.pm @@ -0,0 +1,188 @@ +package NGCP::Schema::billing::Result::voip_intercept; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_intercept"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "liid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "number", + { data_type => "varchar", is_nullable => 1, size => 63 }, + "cc_required", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "delivery_host", + { data_type => "varchar", is_nullable => 1, size => 15 }, + "delivery_port", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 1 }, + "delivery_user", + { data_type => "text", is_nullable => 1 }, + "delivery_pass", + { data_type => "text", is_nullable => 1 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, + "deleted", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::voip_intercept + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 liid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 number + + data_type: 'varchar' + is_nullable: 1 + size: 63 + +=head2 cc_required + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 delivery_host + + data_type: 'varchar' + is_nullable: 1 + size: 15 + +=head2 delivery_port + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 delivery_user + + data_type: 'text' + is_nullable: 1 + +=head2 delivery_pass + + data_type: 'text' + is_nullable: 1 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head2 deleted + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XJXZFLdNAoBUsytZcejgGg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/voip_number_block_resellers.pm b/lib/NGCP/Schema/billing/Result/voip_number_block_resellers.pm new file mode 100644 index 00000000..6f745b99 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/voip_number_block_resellers.pm @@ -0,0 +1,121 @@ +package NGCP::Schema::billing::Result::voip_number_block_resellers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_number_block_resellers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "number_block_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "number_block", + "NGCP::Schema::billing::Result::voip_number_blocks", + { id => "number_block_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::voip_number_block_resellers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 number_block_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 number_block + +Type: belongs_to + +Related object: L + +=head2 reseller + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ed8RgLkMaCi4XbtnJAJsTg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/voip_number_blocks.pm b/lib/NGCP/Schema/billing/Result/voip_number_blocks.pm new file mode 100644 index 00000000..27062ed3 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/voip_number_blocks.pm @@ -0,0 +1,144 @@ +package NGCP::Schema::billing::Result::voip_number_blocks; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_number_blocks"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "cc", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "ac", + { data_type => "varchar", is_nullable => 0, size => 7 }, + "sn_prefix", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "sn_length", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 0 }, + "allocable", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "authoritative", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("prefix_idx", ["cc", "ac", "sn_prefix"]); + + +__PACKAGE__->has_many( + "voip_number_block_resellers", + "NGCP::Schema::billing::Result::voip_number_block_resellers", + { "foreign.number_block_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::voip_number_blocks + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 cc + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 ac + + data_type: 'varchar' + is_nullable: 0 + size: 7 + +=head2 sn_prefix + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 sn_length + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 allocable + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 authoritative + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_number_block_resellers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WK0ncqEM1VPEh93P9gl4Gg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/voip_numbers.pm b/lib/NGCP/Schema/billing/Result/voip_numbers.pm new file mode 100644 index 00000000..d8881615 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/voip_numbers.pm @@ -0,0 +1,222 @@ +package NGCP::Schema::billing::Result::voip_numbers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_numbers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "cc", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "ac", + { data_type => "varchar", is_nullable => 0, size => 7 }, + "sn", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "status", + { + data_type => "enum", + default_value => "active", + extra => { list => ["active", "reserved", "locked", "deported"] }, + is_nullable => 0, + }, + "ported", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "list_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("number_idx", ["cc", "ac", "sn"]); + + +__PACKAGE__->belongs_to( + "reseller", + "NGCP::Schema::billing::Result::resellers", + { id => "reseller_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::billing::Result::voip_subscribers", + { id => "subscriber_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "voip_subscribers", + "NGCP::Schema::billing::Result::voip_subscribers", + { "foreign.primary_number_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::voip_numbers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 cc + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 ac + + data_type: 'varchar' + is_nullable: 0 + size: 7 + +=head2 sn + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 reseller_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 status + + data_type: 'enum' + default_value: 'active' + extra: {list => ["active","reserved","locked","deported"]} + is_nullable: 0 + +=head2 ported + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 list_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 reseller + +Type: belongs_to + +Related object: L + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=head2 voip_subscribers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tbScuiGmQWcI6Ie1xaGbOw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/billing/Result/voip_subscribers.pm b/lib/NGCP/Schema/billing/Result/voip_subscribers.pm new file mode 100644 index 00000000..ce63ddd8 --- /dev/null +++ b/lib/NGCP/Schema/billing/Result/voip_subscribers.pm @@ -0,0 +1,219 @@ +package NGCP::Schema::billing::Result::voip_subscribers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_subscribers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "char", is_nullable => 0, size => 36 }, + "username", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "domain_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "status", + { + data_type => "enum", + default_value => "active", + extra => { list => ["active", "locked", "terminated"] }, + is_nullable => 0, + }, + "primary_number_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("uuid_idx", ["uuid"]); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::billing::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "domain", + "NGCP::Schema::billing::Result::domains", + { id => "domain_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "primary_number", + "NGCP::Schema::billing::Result::voip_numbers", + { id => "primary_number_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "voip_numbers", + "NGCP::Schema::billing::Result::voip_numbers", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::billing::Result::voip_subscribers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 domain_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 status + + data_type: 'enum' + default_value: 'active' + extra: {list => ["active","locked","terminated"]} + is_nullable: 0 + +=head2 primary_number_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 domain + +Type: belongs_to + +Related object: L + +=head2 primary_number + +Type: belongs_to + +Related object: L + +=head2 voip_numbers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:23joLfR2FBx5Q1pAQN1K0w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier.pm b/lib/NGCP/Schema/carrier.pm new file mode 100644 index 00000000..b29a4940 --- /dev/null +++ b/lib/NGCP/Schema/carrier.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::carrier; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZkLVk1U3iWTLFab8AN5iA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/carrier/Result/contracts.pm b/lib/NGCP/Schema/carrier/Result/contracts.pm new file mode 100644 index 00000000..1511c576 --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/contracts.pm @@ -0,0 +1,163 @@ +package NGCP::Schema::carrier::Result::contracts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("contracts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "url", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "customer_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "sip_uri", + { data_type => "varchar", is_nullable => 1, size => 127 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("externalid_idx", ["external_id"]); + + +__PACKAGE__->has_many( + "credits", + "NGCP::Schema::carrier::Result::credits", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->belongs_to( + "customer", + "NGCP::Schema::carrier::Result::customers", + { id => "customer_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "subscribers", + "NGCP::Schema::carrier::Result::subscribers", + { "foreign.contract_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::contracts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 url + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 customer_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 sip_uri + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 credits + +Type: has_many + +Related object: L + +=head2 customer + +Type: belongs_to + +Related object: L + +=head2 subscribers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9EZxEmXUVDpzRf1TFcFz2Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/credits.pm b/lib/NGCP/Schema/carrier/Result/credits.pm new file mode 100644 index 00000000..01b6b51b --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/credits.pm @@ -0,0 +1,107 @@ +package NGCP::Schema::carrier::Result::credits; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("credits"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::carrier::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "payments", + "NGCP::Schema::carrier::Result::payments", + { "foreign.credit_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::credits + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 payments + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AvJUNHY/vrk3UpFzKPG8oA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/customers.pm b/lib/NGCP/Schema/carrier/Result/customers.pm new file mode 100644 index 00000000..d04f7721 --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/customers.pm @@ -0,0 +1,141 @@ +package NGCP::Schema::carrier::Result::customers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("customers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "url", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "shopuser", + { data_type => "varchar", is_nullable => 1, size => 31 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("externalid_idx", ["external_id"]); + + +__PACKAGE__->add_unique_constraint("shopuser_idx", ["shopuser"]); + + +__PACKAGE__->has_many( + "contracts", + "NGCP::Schema::carrier::Result::contracts", + { "foreign.customer_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "orders", + "NGCP::Schema::carrier::Result::orders", + { "foreign.customer_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::customers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 url + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 shopuser + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 contracts + +Type: has_many + +Related object: L + +=head2 orders + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EOy9TLNdHl9yCZDpfqWxjA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/interceptions.pm b/lib/NGCP/Schema/carrier/Result/interceptions.pm new file mode 100644 index 00000000..d5dd3d1a --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/interceptions.pm @@ -0,0 +1,71 @@ +package NGCP::Schema::carrier::Result::interceptions; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("interceptions"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "url", + { data_type => "varchar", is_nullable => 0, size => 31 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::interceptions + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 url + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oOYSGCP8a6dzQkvxKUtvSQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/numbers.pm b/lib/NGCP/Schema/carrier/Result/numbers.pm new file mode 100644 index 00000000..30f9f764 --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/numbers.pm @@ -0,0 +1,92 @@ +package NGCP::Schema::carrier::Result::numbers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("numbers"); + + +__PACKAGE__->add_columns( + "number", + { data_type => "varchar", is_nullable => 0, size => 42 }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("number"); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::carrier::Result::subscribers", + { id => "subscriber_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::numbers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 number + + data_type: 'varchar' + is_nullable: 0 + size: 42 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ubzj19lLfeixYuUoRkkJyA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/orders.pm b/lib/NGCP/Schema/carrier/Result/orders.pm new file mode 100644 index 00000000..bdbfff1d --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/orders.pm @@ -0,0 +1,107 @@ +package NGCP::Schema::carrier::Result::orders; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("orders"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "customer_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "customer", + "NGCP::Schema::carrier::Result::customers", + { id => "customer_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "payments", + "NGCP::Schema::carrier::Result::payments", + { "foreign.order_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::orders + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 customer_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 customer + +Type: belongs_to + +Related object: L + +=head2 payments + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x/P3BFKHbBmhXAEM/UBFwg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/payments.pm b/lib/NGCP/Schema/carrier/Result/payments.pm new file mode 100644 index 00000000..22d8bc4d --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/payments.pm @@ -0,0 +1,131 @@ +package NGCP::Schema::carrier::Result::payments; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("payments"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "order_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "credit_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "credit", + "NGCP::Schema::carrier::Result::credits", + { id => "credit_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "order", + "NGCP::Schema::carrier::Result::orders", + { id => "order_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::payments + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 order_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 credit_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 credit + +Type: belongs_to + +Related object: L + +=head2 order + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3OCk/Zx1CUEyfwXxQxiqhg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/carrier/Result/subscribers.pm b/lib/NGCP/Schema/carrier/Result/subscribers.pm new file mode 100644 index 00000000..e889a8ab --- /dev/null +++ b/lib/NGCP/Schema/carrier/Result/subscribers.pm @@ -0,0 +1,178 @@ +package NGCP::Schema::carrier::Result::subscribers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("subscribers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "external_id", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "username", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "webusername", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "contract_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("domwebuser_idx", ["domain", "webusername"]); + + +__PACKAGE__->add_unique_constraint("externalid_idx", ["external_id"]); + + +__PACKAGE__->add_unique_constraint("usrdom_idx", ["username", "domain"]); + + +__PACKAGE__->belongs_to( + "contract", + "NGCP::Schema::carrier::Result::contracts", + { id => "contract_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "numbers", + "NGCP::Schema::carrier::Result::numbers", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::carrier::Result::subscribers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 external_id + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 webusername + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 contract + +Type: belongs_to + +Related object: L + +=head2 numbers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:12:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a8R7tZQhbu4kVGnJ11NDwA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio.pm b/lib/NGCP/Schema/kamailio.pm new file mode 100644 index 00000000..3bff3b97 --- /dev/null +++ b/lib/NGCP/Schema/kamailio.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::kamailio; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ygw1KLGCnt0HJKy0rsv3xw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/kamailio/Result/acc.pm b/lib/NGCP/Schema/kamailio/Result/acc.pm new file mode 100644 index 00000000..3bfb10e8 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/acc.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::kamailio::Result::acc; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::acc + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VYoXxbeSoPNLTcPoyXeVJQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/acc_backup.pm b/lib/NGCP/Schema/kamailio/Result/acc_backup.pm new file mode 100644 index 00000000..8220c3d3 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/acc_backup.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::kamailio::Result::acc_backup; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc_backup"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::acc_backup + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xOUce1zjrcziYrqHMjSnRQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/acc_trash.pm b/lib/NGCP/Schema/kamailio/Result/acc_trash.pm new file mode 100644 index 00000000..0f3f7183 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/acc_trash.pm @@ -0,0 +1,198 @@ +package NGCP::Schema::kamailio::Result::acc_trash; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("acc_trash"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "method", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "from_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "to_tag", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "sip_code", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, + "sip_reason", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "time", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, + "time_hires", + { data_type => "decimal", is_nullable => 0, size => [13, 3] }, + "src_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_leg", + { data_type => "varchar", is_nullable => 1, size => 2048 }, + "dst_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_ouser", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "dst_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "src_user", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "src_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::acc_trash + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 from_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 sip_code + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 3 + +=head2 sip_reason + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 time + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 time_hires + + data_type: 'decimal' + is_nullable: 0 + size: [13,3] + +=head2 src_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_leg + + data_type: 'varchar' + is_nullable: 1 + size: 2048 + +=head2 dst_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_ouser + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 dst_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 src_user + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 src_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W3Eh/IC3/D4n3YnRsL6vlA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/active_watchers.pm b/lib/NGCP/Schema/kamailio/Result/active_watchers.pm new file mode 100644 index 00000000..d4df2f3d --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/active_watchers.pm @@ -0,0 +1,272 @@ +package NGCP::Schema::kamailio::Result::active_watchers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("active_watchers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "presentity_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "watcher_username", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "watcher_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "to_user", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "to_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "event", + { + data_type => "varchar", + default_value => "presence", + is_nullable => 0, + size => 64, + }, + "event_id", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "to_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "from_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "local_cseq", + { data_type => "integer", is_nullable => 0 }, + "remote_cseq", + { data_type => "integer", is_nullable => 0 }, + "contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "record_route", + { data_type => "text", is_nullable => 1 }, + "expires", + { data_type => "integer", is_nullable => 0 }, + "status", + { data_type => "integer", default_value => 2, is_nullable => 0 }, + "reason", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "version", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "socket_info", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "local_contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "from_user", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "from_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "updated", + { data_type => "integer", is_nullable => 0 }, + "updated_winfo", + { data_type => "integer", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("active_watchers_idx", ["callid", "to_tag", "from_tag"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::active_watchers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 presentity_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 watcher_username + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 watcher_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 to_user + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 to_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 event + + data_type: 'varchar' + default_value: 'presence' + is_nullable: 0 + size: 64 + +=head2 event_id + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 from_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 local_cseq + + data_type: 'integer' + is_nullable: 0 + +=head2 remote_cseq + + data_type: 'integer' + is_nullable: 0 + +=head2 contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 record_route + + data_type: 'text' + is_nullable: 1 + +=head2 expires + + data_type: 'integer' + is_nullable: 0 + +=head2 status + + data_type: 'integer' + default_value: 2 + is_nullable: 0 + +=head2 reason + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 version + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 socket_info + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 local_contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 from_user + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 from_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 updated + + data_type: 'integer' + is_nullable: 0 + +=head2 updated_winfo + + data_type: 'integer' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8yo/PQhpLlYaMiblbR3IMQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/address.pm b/lib/NGCP/Schema/kamailio/Result/address.pm new file mode 100644 index 00000000..bbb4cae2 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/address.pm @@ -0,0 +1,115 @@ +package NGCP::Schema::kamailio::Result::address; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("address"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "grp", + { + data_type => "integer", + default_value => 1, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "ip_addr", + { data_type => "varchar", is_nullable => 0, size => 48 }, + "mask", + { data_type => "integer", default_value => 32, is_nullable => 0 }, + "port", + { + data_type => "smallint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "tag", + { data_type => "varchar", is_nullable => 1, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::address + +=head1 TABLE: C
+ +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 grp + + data_type: 'integer' + default_value: 1 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 ip_addr + + data_type: 'varchar' + is_nullable: 0 + size: 48 + +=head2 mask + + data_type: 'integer' + default_value: 32 + is_nullable: 0 + +=head2 port + + data_type: 'smallint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 tag + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HCSJ082O01TpgLAISRcGeA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/aliases.pm b/lib/NGCP/Schema/kamailio/Result/aliases.pm new file mode 100644 index 00000000..5bb165db --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/aliases.pm @@ -0,0 +1,234 @@ +package NGCP::Schema::kamailio::Result::aliases; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("aliases"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "ruid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "contact", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "received", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "path", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "expires", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "2020-05-28 21:32:15", + is_nullable => 0, + }, + "q", + { + data_type => "float", + default_value => "1.00", + is_nullable => 0, + size => [10, 2], + }, + "callid", + { + data_type => "varchar", + default_value => "Default-Call-ID", + is_nullable => 0, + size => 255, + }, + "cseq", + { data_type => "integer", default_value => 1, is_nullable => 0 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, + "flags", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "cflags", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "user_agent", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "socket", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "methods", + { data_type => "integer", is_nullable => 1 }, + "instance", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "reg_id", + { data_type => "integer", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::aliases + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 ruid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 contact + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 received + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 path + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 expires + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '2020-05-28 21:32:15' + is_nullable: 0 + +=head2 q + + data_type: 'float' + default_value: 1.00 + is_nullable: 0 + size: [10,2] + +=head2 callid + + data_type: 'varchar' + default_value: 'Default-Call-ID' + is_nullable: 0 + size: 255 + +=head2 cseq + + data_type: 'integer' + default_value: 1 + is_nullable: 0 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head2 flags + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 cflags + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 user_agent + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 socket + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 methods + + data_type: 'integer' + is_nullable: 1 + +=head2 instance + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 reg_id + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e6wdphtD8zG2FnLksZFxjw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dbaliases.pm b/lib/NGCP/Schema/kamailio/Result/dbaliases.pm new file mode 100644 index 00000000..9941228c --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dbaliases.pm @@ -0,0 +1,114 @@ +package NGCP::Schema::kamailio::Result::dbaliases; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dbaliases"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "alias_username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "alias_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("alias_idx", ["alias_username", "alias_domain"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dbaliases + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 alias_username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 alias_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FRhzs0cqafLwuHh/Grzg3Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dialog.pm b/lib/NGCP/Schema/kamailio/Result/dialog.pm new file mode 100644 index 00000000..d23823ed --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dialog.pm @@ -0,0 +1,265 @@ +package NGCP::Schema::kamailio::Result::dialog; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dialog"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "hash_entry", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "hash_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "callid", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "from_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "from_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "to_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "to_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "caller_cseq", + { data_type => "varchar", is_nullable => 0, size => 20 }, + "callee_cseq", + { data_type => "varchar", is_nullable => 0, size => 20 }, + "caller_route_set", + { data_type => "varchar", is_nullable => 1, size => 512 }, + "callee_route_set", + { data_type => "varchar", is_nullable => 1, size => 512 }, + "caller_contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "callee_contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "caller_sock", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "callee_sock", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "state", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "start_time", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "timeout", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "sflags", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "toroute_name", + { data_type => "varchar", is_nullable => 1, size => 32 }, + "req_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "iflags", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "xdata", + { data_type => "varchar", is_nullable => 1, size => 512 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dialog + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 hash_entry + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 hash_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 callid + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 from_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 from_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 to_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 to_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 caller_cseq + + data_type: 'varchar' + is_nullable: 0 + size: 20 + +=head2 callee_cseq + + data_type: 'varchar' + is_nullable: 0 + size: 20 + +=head2 caller_route_set + + data_type: 'varchar' + is_nullable: 1 + size: 512 + +=head2 callee_route_set + + data_type: 'varchar' + is_nullable: 1 + size: 512 + +=head2 caller_contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 callee_contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 caller_sock + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 callee_sock + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 state + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 start_time + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 timeout + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 sflags + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 toroute_name + + data_type: 'varchar' + is_nullable: 1 + size: 32 + +=head2 req_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 iflags + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 xdata + + data_type: 'varchar' + is_nullable: 1 + size: 512 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gDTDIZ6+VkGXCaj4vCSxUw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dialog_vars.pm b/lib/NGCP/Schema/kamailio/Result/dialog_vars.pm new file mode 100644 index 00000000..3f0dd7d7 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dialog_vars.pm @@ -0,0 +1,95 @@ +package NGCP::Schema::kamailio::Result::dialog_vars; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dialog_vars"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "hash_entry", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "hash_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "dialog_key", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "dialog_value", + { data_type => "varchar", is_nullable => 0, size => 512 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dialog_vars + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 hash_entry + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 hash_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 dialog_key + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 dialog_value + + data_type: 'varchar' + is_nullable: 0 + size: 512 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6UgbEOQQ4GFee770H+ZArg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dialplan.pm b/lib/NGCP/Schema/kamailio/Result/dialplan.pm new file mode 100644 index 00000000..da3395e5 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dialplan.pm @@ -0,0 +1,123 @@ +package NGCP::Schema::kamailio::Result::dialplan; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dialplan"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "dpid", + { data_type => "integer", is_nullable => 0 }, + "pr", + { data_type => "integer", is_nullable => 0 }, + "match_op", + { data_type => "integer", is_nullable => 0 }, + "match_exp", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "match_len", + { data_type => "integer", is_nullable => 0 }, + "subst_exp", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "repl_exp", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "attrs", + { data_type => "varchar", is_nullable => 0, size => 32 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dialplan + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 dpid + + data_type: 'integer' + is_nullable: 0 + +=head2 pr + + data_type: 'integer' + is_nullable: 0 + +=head2 match_op + + data_type: 'integer' + is_nullable: 0 + +=head2 match_exp + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 match_len + + data_type: 'integer' + is_nullable: 0 + +=head2 subst_exp + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 repl_exp + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 attrs + + data_type: 'varchar' + is_nullable: 0 + size: 32 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A54wONcrrNTp4H5Bo2OyPQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dispatcher.pm b/lib/NGCP/Schema/kamailio/Result/dispatcher.pm new file mode 100644 index 00000000..87b62cfa --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dispatcher.pm @@ -0,0 +1,114 @@ +package NGCP::Schema::kamailio::Result::dispatcher; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dispatcher"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "setid", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "destination", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 192 }, + "flags", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "priority", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "attrs", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "description", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dispatcher + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 setid + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 destination + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 192 + +=head2 flags + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 priority + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 attrs + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 description + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E2bERAH7sNvhnqxFRPNt9w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/dom_preferences.pm b/lib/NGCP/Schema/kamailio/Result/dom_preferences.pm new file mode 100644 index 00000000..3c0f4ff6 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/dom_preferences.pm @@ -0,0 +1,129 @@ +package NGCP::Schema::kamailio::Result::dom_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("dom_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "char", is_nullable => 0, size => 36 }, + "username", + { data_type => "varchar", default_value => 0, is_nullable => 0, size => 128 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "attribute", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, + "type", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::dom_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 username + + data_type: 'varchar' + default_value: 0 + is_nullable: 0 + size: 128 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 attribute + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 32 + +=head2 type + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VXKg9ZpxcpPgUc8EbJ6HGQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/domain.pm b/lib/NGCP/Schema/kamailio/Result/domain.pm new file mode 100644 index 00000000..1a489e3c --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/domain.pm @@ -0,0 +1,106 @@ +package NGCP::Schema::kamailio::Result::domain; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("domain"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, + "did", + { data_type => "varchar", is_nullable => 1, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::domain + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head2 did + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GwLf63xo1FksEvcO+kFj3Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/domain_attrs.pm b/lib/NGCP/Schema/kamailio/Result/domain_attrs.pm new file mode 100644 index 00000000..cfb4cd82 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/domain_attrs.pm @@ -0,0 +1,126 @@ +package NGCP::Schema::kamailio::Result::domain_attrs; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("domain_attrs"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "did", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "name", + { data_type => "varchar", is_nullable => 0, size => 32 }, + "type", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "value", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("domain_attrs_idx", ["did", "name", "value"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::domain_attrs + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 did + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 32 + +=head2 type + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qDM4QEqDFiALyagYFHlwWg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/fax_destinations.pm b/lib/NGCP/Schema/kamailio/Result/fax_destinations.pm new file mode 100644 index 00000000..33e1102f --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/fax_destinations.pm @@ -0,0 +1,149 @@ +package NGCP::Schema::kamailio::Result::fax_destinations; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("fax_destinations"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "filetype", + { + data_type => "enum", + default_value => "tiff", + extra => { list => ["ps", "tiff", "pdf", "pdf14"] }, + is_nullable => 0, + }, + "cc", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "incoming", + { + data_type => "enum", + default_value => "true", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "outgoing", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "status", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::fax_destinations + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 filetype + + data_type: 'enum' + default_value: 'tiff' + extra: {list => ["ps","tiff","pdf","pdf14"]} + is_nullable: 0 + +=head2 cc + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 incoming + + data_type: 'enum' + default_value: 'true' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 outgoing + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 status + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ElBDVKtbttgZY6du8RqEJg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/fax_journal.pm b/lib/NGCP/Schema/kamailio/Result/fax_journal.pm new file mode 100644 index 00000000..79a52f06 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/fax_journal.pm @@ -0,0 +1,200 @@ +package NGCP::Schema::kamailio::Result::fax_journal; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("fax_journal"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "the_timestamp", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "duration", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "direction", + { + data_type => "enum", + default_value => "in", + extra => { list => ["in", "out"] }, + is_nullable => 0, + }, + "peer_number", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "peer_name", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "pages", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "reason", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "status", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "signal_rate", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "quality", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "filename", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::fax_journal + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 the_timestamp + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 duration + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 direction + + data_type: 'enum' + default_value: 'in' + extra: {list => ["in","out"]} + is_nullable: 0 + +=head2 peer_number + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 peer_name + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 pages + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 reason + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 status + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 signal_rate + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 quality + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 filename + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:llP/jrWQnqaw0MU+m9wnMQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/fax_preferences.pm b/lib/NGCP/Schema/kamailio/Result/fax_preferences.pm new file mode 100644 index 00000000..c6b7b2d4 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/fax_preferences.pm @@ -0,0 +1,129 @@ +package NGCP::Schema::kamailio::Result::fax_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("fax_preferences"); + + +__PACKAGE__->add_columns( + "subscriber_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "password", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "name", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "active", + { + data_type => "enum", + default_value => "true", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "send_status", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "send_copy", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, + "send_copy_cc", + { + data_type => "enum", + default_value => "false", + extra => { list => ["true", "false"] }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("subscriber_id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::fax_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 password + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 name + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 active + + data_type: 'enum' + default_value: 'true' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 send_status + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 send_copy + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head2 send_copy_cc + + data_type: 'enum' + default_value: 'false' + extra: {list => ["true","false"]} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nhJX0CJBd02yCY2xA2/kJA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/htable.pm b/lib/NGCP/Schema/kamailio/Result/htable.pm new file mode 100644 index 00000000..e20c4012 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/htable.pm @@ -0,0 +1,105 @@ +package NGCP::Schema::kamailio::Result::htable; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("htable"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "key_name", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "key_type", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "value_type", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "key_value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "expires", + { data_type => "integer", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::htable + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 key_name + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 key_type + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 value_type + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 key_value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 expires + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I/7S8F1D3madcLNRkJPpQg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/lcr_gw.pm b/lib/NGCP/Schema/kamailio/Result/lcr_gw.pm new file mode 100644 index 00000000..cd15bc6c --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/lcr_gw.pm @@ -0,0 +1,225 @@ +package NGCP::Schema::kamailio::Result::lcr_gw; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("lcr_gw"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "lcr_id", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "gw_name", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "ip_addr", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "hostname", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "port", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 1 }, + "params", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "uri_scheme", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "transport", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "strip", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "tag", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "flags", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "defunct", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "group_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "prefix", + { data_type => "varchar", is_nullable => 1, size => 16 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("lcr_id_gw_name_idx", ["lcr_id", "gw_name"]); + + +__PACKAGE__->add_unique_constraint("lcr_id_ip_addr_idx", ["lcr_id", "ip_addr"]); + + +__PACKAGE__->has_many( + "lcr_rule_targets", + "NGCP::Schema::kamailio::Result::lcr_rule_target", + { "foreign.gw_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::lcr_gw + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 lcr_id + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 gw_name + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 ip_addr + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 hostname + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 port + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 params + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 uri_scheme + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 transport + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 strip + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 tag + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 flags + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 defunct + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 prefix + + data_type: 'varchar' + is_nullable: 1 + size: 16 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 lcr_rule_targets + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BImaq701JIRfTXWmyX7f4w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/lcr_rule.pm b/lib/NGCP/Schema/kamailio/Result/lcr_rule.pm new file mode 100644 index 00000000..4bd2bbcf --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/lcr_rule.pm @@ -0,0 +1,172 @@ +package NGCP::Schema::kamailio::Result::lcr_rule; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("lcr_rule"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "lcr_id", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "prefix", + { data_type => "varchar", is_nullable => 1, size => 16 }, + "request_uri", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 64 }, + "from_uri", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "stopper", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "enabled", + { + data_type => "integer", + default_value => 1, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "group_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint( + "lcr_id_prefix_from_uri_idx", + ["lcr_id", "prefix", "from_uri", "request_uri", "group_id"], +); + + +__PACKAGE__->has_many( + "lcr_rule_targets", + "NGCP::Schema::kamailio::Result::lcr_rule_target", + { "foreign.rule_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::lcr_rule + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 lcr_id + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 prefix + + data_type: 'varchar' + is_nullable: 1 + size: 16 + +=head2 request_uri + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 64 + +=head2 from_uri + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 stopper + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 enabled + + data_type: 'integer' + default_value: 1 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 lcr_rule_targets + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QAGgaZA5kL8CZHAx4ffarw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/lcr_rule_target.pm b/lib/NGCP/Schema/kamailio/Result/lcr_rule_target.pm new file mode 100644 index 00000000..15b49c9e --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/lcr_rule_target.pm @@ -0,0 +1,166 @@ +package NGCP::Schema::kamailio::Result::lcr_rule_target; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("lcr_rule_target"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "lcr_id", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "rule_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "gw_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "priority", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 0 }, + "weight", + { + data_type => "integer", + default_value => 1, + extra => { unsigned => 1 }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("rule_id_gw_id_idx", ["rule_id", "gw_id"]); + + +__PACKAGE__->belongs_to( + "gw", + "NGCP::Schema::kamailio::Result::lcr_gw", + { id => "gw_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "rule", + "NGCP::Schema::kamailio::Result::lcr_rule", + { id => "rule_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::lcr_rule_target + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 lcr_id + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 rule_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 gw_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 priority + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 weight + + data_type: 'integer' + default_value: 1 + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 gw + +Type: belongs_to + +Related object: L + +=head2 rule + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TMUmG1O8aKJhGJKqwL84hw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/location.pm b/lib/NGCP/Schema/kamailio/Result/location.pm new file mode 100644 index 00000000..f39b5cf0 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/location.pm @@ -0,0 +1,234 @@ +package NGCP::Schema::kamailio::Result::location; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("location"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "contact", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "received", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "path", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "expires", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "2020-05-28 21:32:15", + is_nullable => 0, + }, + "q", + { + data_type => "float", + default_value => "1.00", + is_nullable => 0, + size => [10, 2], + }, + "callid", + { + data_type => "varchar", + default_value => "Default-Call-ID", + is_nullable => 0, + size => 255, + }, + "cseq", + { data_type => "integer", default_value => 13, is_nullable => 0 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, + "flags", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "cflags", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "user_agent", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "socket", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "methods", + { data_type => "integer", is_nullable => 1 }, + "ruid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "reg_id", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "instance", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::location + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 contact + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 received + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 path + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 expires + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '2020-05-28 21:32:15' + is_nullable: 0 + +=head2 q + + data_type: 'float' + default_value: 1.00 + is_nullable: 0 + size: [10,2] + +=head2 callid + + data_type: 'varchar' + default_value: 'Default-Call-ID' + is_nullable: 0 + size: 255 + +=head2 cseq + + data_type: 'integer' + default_value: 13 + is_nullable: 0 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head2 flags + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 cflags + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 user_agent + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 socket + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 methods + + data_type: 'integer' + is_nullable: 1 + +=head2 ruid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 reg_id + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 instance + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wdd2/a/5XqhRg9e2eBdv9g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/mobile_push_registrations.pm b/lib/NGCP/Schema/kamailio/Result/mobile_push_registrations.pm new file mode 100644 index 00000000..075eb2c6 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/mobile_push_registrations.pm @@ -0,0 +1,97 @@ +package NGCP::Schema::kamailio::Result::mobile_push_registrations; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("mobile_push_registrations"); + + +__PACKAGE__->add_columns( + "reg_id", + { data_type => "varbinary", is_nullable => 0, size => 255 }, + "type", + { + data_type => "enum", + extra => { list => ["gcm", "apns"] }, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("reg_id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::mobile_push_registrations + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 reg_id + + data_type: 'varbinary' + is_nullable: 0 + size: 255 + +=head2 type + + data_type: 'enum' + extra: {list => ["gcm","apns"]} + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hwcFS8HEPTe8YzalBH26Ng + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/peer_preferences.pm b/lib/NGCP/Schema/kamailio/Result/peer_preferences.pm new file mode 100644 index 00000000..6ab83255 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/peer_preferences.pm @@ -0,0 +1,129 @@ +package NGCP::Schema::kamailio::Result::peer_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("peer_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "varchar", is_nullable => 0, size => 36 }, + "username", + { data_type => "varchar", default_value => 0, is_nullable => 0, size => 128 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "attribute", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, + "type", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::peer_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'varchar' + is_nullable: 0 + size: 36 + +=head2 username + + data_type: 'varchar' + default_value: 0 + is_nullable: 0 + size: 128 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 attribute + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 32 + +=head2 type + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cYmzG3qrlzcUGWRhp8f8Og + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/presentity.pm b/lib/NGCP/Schema/kamailio/Result/presentity.pm new file mode 100644 index 00000000..18bfc878 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/presentity.pm @@ -0,0 +1,143 @@ +package NGCP::Schema::kamailio::Result::presentity; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("presentity"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "event", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "etag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "expires", + { data_type => "integer", is_nullable => 0 }, + "received_time", + { data_type => "integer", is_nullable => 0 }, + "body", + { data_type => "blob", is_nullable => 0 }, + "sender", + { data_type => "varchar", is_nullable => 0, size => 128 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("presentity_idx", ["username", "domain", "event", "etag"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::presentity + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 event + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 etag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 expires + + data_type: 'integer' + is_nullable: 0 + +=head2 received_time + + data_type: 'integer' + is_nullable: 0 + +=head2 body + + data_type: 'blob' + is_nullable: 0 + +=head2 sender + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZaLBs4F3V828YS5sps4UGg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/pua.pm b/lib/NGCP/Schema/kamailio/Result/pua.pm new file mode 100644 index 00000000..7d9dbf79 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/pua.pm @@ -0,0 +1,218 @@ +package NGCP::Schema::kamailio::Result::pua; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("pua"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "pres_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "pres_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "event", + { data_type => "integer", is_nullable => 0 }, + "expires", + { data_type => "integer", is_nullable => 0 }, + "desired_expires", + { data_type => "integer", is_nullable => 0 }, + "flag", + { data_type => "integer", is_nullable => 0 }, + "etag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "tuple_id", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "watcher_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "call_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "to_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "from_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "cseq", + { data_type => "integer", is_nullable => 0 }, + "record_route", + { data_type => "text", is_nullable => 1 }, + "contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "remote_contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "version", + { data_type => "integer", is_nullable => 0 }, + "extra_headers", + { data_type => "text", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("pua_idx", ["etag", "tuple_id", "call_id", "from_tag"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::pua + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 pres_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 pres_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 event + + data_type: 'integer' + is_nullable: 0 + +=head2 expires + + data_type: 'integer' + is_nullable: 0 + +=head2 desired_expires + + data_type: 'integer' + is_nullable: 0 + +=head2 flag + + data_type: 'integer' + is_nullable: 0 + +=head2 etag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 tuple_id + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 watcher_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 call_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 to_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 from_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 cseq + + data_type: 'integer' + is_nullable: 0 + +=head2 record_route + + data_type: 'text' + is_nullable: 1 + +=head2 contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 remote_contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 version + + data_type: 'integer' + is_nullable: 0 + +=head2 extra_headers + + data_type: 'text' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lHILSsQUYIIIEiN62kv/4A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/rls_presentity.pm b/lib/NGCP/Schema/kamailio/Result/rls_presentity.pm new file mode 100644 index 00000000..e86d30c7 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/rls_presentity.pm @@ -0,0 +1,138 @@ +package NGCP::Schema::kamailio::Result::rls_presentity; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("rls_presentity"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "rlsubs_did", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "resource_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "content_type", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "presence_state", + { data_type => "blob", is_nullable => 0 }, + "expires", + { data_type => "integer", is_nullable => 0 }, + "updated", + { data_type => "integer", is_nullable => 0 }, + "auth_state", + { data_type => "integer", is_nullable => 0 }, + "reason", + { data_type => "varchar", is_nullable => 0, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("rls_presentity_idx", ["rlsubs_did", "resource_uri"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::rls_presentity + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 rlsubs_did + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 resource_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 content_type + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 presence_state + + data_type: 'blob' + is_nullable: 0 + +=head2 expires + + data_type: 'integer' + is_nullable: 0 + +=head2 updated + + data_type: 'integer' + is_nullable: 0 + +=head2 auth_state + + data_type: 'integer' + is_nullable: 0 + +=head2 reason + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sbH4CMNqhw8xPRmNa6HkUg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/rls_watchers.pm b/lib/NGCP/Schema/kamailio/Result/rls_watchers.pm new file mode 100644 index 00000000..46858df3 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/rls_watchers.pm @@ -0,0 +1,265 @@ +package NGCP::Schema::kamailio::Result::rls_watchers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("rls_watchers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "presentity_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "to_user", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "to_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "watcher_username", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "watcher_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "event", + { + data_type => "varchar", + default_value => "presence", + is_nullable => 0, + size => 64, + }, + "event_id", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "to_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "from_tag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "callid", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "local_cseq", + { data_type => "integer", is_nullable => 0 }, + "remote_cseq", + { data_type => "integer", is_nullable => 0 }, + "contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "record_route", + { data_type => "text", is_nullable => 1 }, + "expires", + { data_type => "integer", is_nullable => 0 }, + "status", + { data_type => "integer", default_value => 2, is_nullable => 0 }, + "reason", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "version", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "socket_info", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "local_contact", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "from_user", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "from_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "updated", + { data_type => "integer", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("rls_watcher_idx", ["callid", "to_tag", "from_tag"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::rls_watchers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 presentity_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 to_user + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 to_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 watcher_username + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 watcher_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 event + + data_type: 'varchar' + default_value: 'presence' + is_nullable: 0 + size: 64 + +=head2 event_id + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 to_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 from_tag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 callid + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 local_cseq + + data_type: 'integer' + is_nullable: 0 + +=head2 remote_cseq + + data_type: 'integer' + is_nullable: 0 + +=head2 contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 record_route + + data_type: 'text' + is_nullable: 1 + +=head2 expires + + data_type: 'integer' + is_nullable: 0 + +=head2 status + + data_type: 'integer' + default_value: 2 + is_nullable: 0 + +=head2 reason + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 version + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 socket_info + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 local_contact + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 from_user + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 from_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 updated + + data_type: 'integer' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a2XIt5Y2m8JPgYO6CGkXKQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/sems_registrations.pm b/lib/NGCP/Schema/kamailio/Result/sems_registrations.pm new file mode 100644 index 00000000..26ba9c2e --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/sems_registrations.pm @@ -0,0 +1,111 @@ +package NGCP::Schema::kamailio::Result::sems_registrations; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("sems_registrations"); + + +__PACKAGE__->add_columns( + "subscriber_id", + { data_type => "integer", is_nullable => 0 }, + "registration_status", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "last_registration", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "expiry", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "last_code", + { data_type => "smallint", is_nullable => 1 }, + "last_reason", + { data_type => "varchar", is_nullable => 1, size => 256 }, + "contacts", + { data_type => "varchar", is_nullable => 1, size => 512 }, +); + + +__PACKAGE__->set_primary_key("subscriber_id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::sems_registrations + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 subscriber_id + + data_type: 'integer' + is_nullable: 0 + +=head2 registration_status + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 last_registration + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 expiry + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 last_code + + data_type: 'smallint' + is_nullable: 1 + +=head2 last_reason + + data_type: 'varchar' + is_nullable: 1 + size: 256 + +=head2 contacts + + data_type: 'varchar' + is_nullable: 1 + size: 512 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dEx5ONprrxZf70O/N1GxHg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/silo.pm b/lib/NGCP/Schema/kamailio/Result/silo.pm new file mode 100644 index 00000000..a4d116f0 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/silo.pm @@ -0,0 +1,168 @@ +package NGCP::Schema::kamailio::Result::silo; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("silo"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "src_addr", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "dst_addr", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "inc_time", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "exp_time", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "snd_time", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "ctype", + { + data_type => "varchar", + default_value => "text/plain", + is_nullable => 0, + size => 32, + }, + "body", + { data_type => "blob", is_nullable => 0 }, + "extra_hdrs", + { data_type => "text", is_nullable => 0 }, + "callid", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "status", + { data_type => "integer", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::silo + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 src_addr + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 dst_addr + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 inc_time + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 exp_time + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 snd_time + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 ctype + + data_type: 'varchar' + default_value: 'text/plain' + is_nullable: 0 + size: 32 + +=head2 body + + data_type: 'blob' + is_nullable: 0 + +=head2 extra_hdrs + + data_type: 'text' + is_nullable: 0 + +=head2 callid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 status + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b+BcdF2VUXiRjQkXDGAbcw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/speed_dial.pm b/lib/NGCP/Schema/kamailio/Result/speed_dial.pm new file mode 100644 index 00000000..1678ba8d --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/speed_dial.pm @@ -0,0 +1,157 @@ +package NGCP::Schema::kamailio::Result::speed_dial; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("speed_dial"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "sd_username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "sd_domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "new_uri", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "fname", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "lname", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "description", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint( + "speed_dial_idx", + ["username", "domain", "sd_domain", "sd_username"], +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::speed_dial + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 sd_username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 sd_domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 new_uri + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 fname + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 lname + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 description + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U9Z6rISf5M1aQVGXKSoOLw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/subscriber.pm b/lib/NGCP/Schema/kamailio/Result/subscriber.pm new file mode 100644 index 00000000..c23cdfc8 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/subscriber.pm @@ -0,0 +1,171 @@ +package NGCP::Schema::kamailio::Result::subscriber; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("subscriber"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "password", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, + "email_address", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "ha1", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "ha1b", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "rpid", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "uuid", + { data_type => "char", is_nullable => 0, size => 36 }, + "timezone", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "datetime_created", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("account_idx", ["username", "domain"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::subscriber + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 password + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 40 + +=head2 email_address + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 ha1 + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 ha1b + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 rpid + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 timezone + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 datetime_created + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nJPyZK4PhbJF4EX0Mw9yYA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/trusted.pm b/lib/NGCP/Schema/kamailio/Result/trusted.pm new file mode 100644 index 00000000..99715bb4 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/trusted.pm @@ -0,0 +1,95 @@ +package NGCP::Schema::kamailio::Result::trusted; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("trusted"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "src_ip", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "proto", + { data_type => "varchar", is_nullable => 0, size => 4 }, + "from_pattern", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "tag", + { data_type => "varchar", is_nullable => 1, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::trusted + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 src_ip + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 proto + + data_type: 'varchar' + is_nullable: 0 + size: 4 + +=head2 from_pattern + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 tag + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nmMdxjggnhbFMTN0jWo2rQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/usr_preferences.pm b/lib/NGCP/Schema/kamailio/Result/usr_preferences.pm new file mode 100644 index 00000000..020a71e7 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/usr_preferences.pm @@ -0,0 +1,129 @@ +package NGCP::Schema::kamailio::Result::usr_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("usr_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "char", is_nullable => 0, size => 36 }, + "username", + { data_type => "varchar", default_value => 0, is_nullable => 0, size => 128 }, + "domain", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "attribute", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, + "type", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + default_value => "1900-01-01 00:00:01", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::usr_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 username + + data_type: 'varchar' + default_value: 0 + is_nullable: 0 + size: 128 + +=head2 domain + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 attribute + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 32 + +=head2 type + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + default_value: '1900-01-01 00:00:01' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YJkXWWYcJyVbS74CWadffw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/version.pm b/lib/NGCP/Schema/kamailio/Result/version.pm new file mode 100644 index 00000000..86830c16 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/version.pm @@ -0,0 +1,60 @@ +package NGCP::Schema::kamailio::Result::version; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("version"); + + +__PACKAGE__->add_columns( + "table_name", + { data_type => "varchar", is_nullable => 0, size => 32 }, + "table_version", + { + data_type => "integer", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::version + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 table_name + + data_type: 'varchar' + is_nullable: 0 + size: 32 + +=head2 table_version + + data_type: 'integer' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik4XhnYDwdu1IKOgE9duYw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/voicemail_spool.pm b/lib/NGCP/Schema/kamailio/Result/voicemail_spool.pm new file mode 100644 index 00000000..31a2e052 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/voicemail_spool.pm @@ -0,0 +1,178 @@ +package NGCP::Schema::kamailio::Result::voicemail_spool; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voicemail_spool"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "msgnum", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "dir", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 127 }, + "context", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 63 }, + "macrocontext", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 63 }, + "callerid", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 255 }, + "origtime", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 16 }, + "duration", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 16 }, + "mailboxuser", + { + data_type => "varchar", + default_value => "", + is_foreign_key => 1, + is_nullable => 1, + size => 255, + }, + "mailboxcontext", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 63 }, + "recording", + { data_type => "longblob", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "mailboxuser", + "NGCP::Schema::kamailio::Result::voicemail_users", + { customer_id => "mailboxuser" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::voicemail_spool + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 msgnum + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=head2 dir + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 127 + +=head2 context + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 63 + +=head2 macrocontext + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 63 + +=head2 callerid + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 255 + +=head2 origtime + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 16 + +=head2 duration + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 16 + +=head2 mailboxuser + + data_type: 'varchar' + default_value: (empty string) + is_foreign_key: 1 + is_nullable: 1 + size: 255 + +=head2 mailboxcontext + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 63 + +=head2 recording + + data_type: 'longblob' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 mailboxuser + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cv0CFjerJbnwlx174XCmjQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/voicemail_users.pm b/lib/NGCP/Schema/kamailio/Result/voicemail_users.pm new file mode 100644 index 00000000..b22d1297 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/voicemail_users.pm @@ -0,0 +1,315 @@ +package NGCP::Schema::kamailio::Result::voicemail_users; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voicemail_users"); + + +__PACKAGE__->add_columns( + "uniqueid", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "customer_id", + { data_type => "char", default_value => "", is_nullable => 0, size => 36 }, + "context", + { + data_type => "varchar", + default_value => "default", + is_nullable => 0, + size => 63, + }, + "mailbox", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "password", + { data_type => "varchar", default_value => 0, is_nullable => 0, size => 31 }, + "fullname", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "email", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "pager", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "tz", + { + data_type => "varchar", + default_value => "central", + is_nullable => 0, + size => 10, + }, + "attach", + { data_type => "varchar", default_value => "yes", is_nullable => 0, size => 4 }, + "saycid", + { data_type => "varchar", default_value => "yes", is_nullable => 0, size => 4 }, + "dialout", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, + "callback", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, + "review", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "operator", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "envelope", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "sayduration", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "saydurationm", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "sendvoicemail", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "delete", + { + accessor => "column_delete", + data_type => "varchar", + default_value => "no", + is_nullable => 0, + size => 4, + }, + "nextaftercmd", + { data_type => "varchar", default_value => "yes", is_nullable => 0, size => 4 }, + "forcename", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "forcegreetings", + { data_type => "varchar", default_value => "no", is_nullable => 0, size => 4 }, + "hidefromdir", + { data_type => "varchar", default_value => "yes", is_nullable => 0, size => 4 }, + "stamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("uniqueid"); + + +__PACKAGE__->has_many( + "voicemail_spools", + "NGCP::Schema::kamailio::Result::voicemail_spool", + { "foreign.mailboxuser" => "self.customer_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::voicemail_users + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 uniqueid + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 customer_id + + data_type: 'char' + default_value: (empty string) + is_nullable: 0 + size: 36 + +=head2 context + + data_type: 'varchar' + default_value: 'default' + is_nullable: 0 + size: 63 + +=head2 mailbox + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 password + + data_type: 'varchar' + default_value: 0 + is_nullable: 0 + size: 31 + +=head2 fullname + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 email + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 pager + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 tz + + data_type: 'varchar' + default_value: 'central' + is_nullable: 0 + size: 10 + +=head2 attach + + data_type: 'varchar' + default_value: 'yes' + is_nullable: 0 + size: 4 + +=head2 saycid + + data_type: 'varchar' + default_value: 'yes' + is_nullable: 0 + size: 4 + +=head2 dialout + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 10 + +=head2 callback + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 10 + +=head2 review + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 operator + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 envelope + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 sayduration + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 saydurationm + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 sendvoicemail + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 delete + + accessor: 'column_delete' + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 nextaftercmd + + data_type: 'varchar' + default_value: 'yes' + is_nullable: 0 + size: 4 + +=head2 forcename + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 forcegreetings + + data_type: 'varchar' + default_value: 'no' + is_nullable: 0 + size: 4 + +=head2 hidefromdir + + data_type: 'varchar' + default_value: 'yes' + is_nullable: 0 + size: 4 + +=head2 stamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voicemail_spools + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c63guSb+vcuGeeDW5SapAw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/watchers.pm b/lib/NGCP/Schema/kamailio/Result/watchers.pm new file mode 100644 index 00000000..9f952013 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/watchers.pm @@ -0,0 +1,145 @@ +package NGCP::Schema::kamailio::Result::watchers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("watchers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "presentity_uri", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "watcher_username", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "watcher_domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "event", + { + data_type => "varchar", + default_value => "presence", + is_nullable => 0, + size => 64, + }, + "status", + { data_type => "integer", is_nullable => 0 }, + "reason", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "inserted_time", + { data_type => "integer", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint( + "watcher_idx", + ["presentity_uri", "watcher_username", "watcher_domain", "event"], +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::watchers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 presentity_uri + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 watcher_username + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 watcher_domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 event + + data_type: 'varchar' + default_value: 'presence' + is_nullable: 0 + size: 64 + +=head2 status + + data_type: 'integer' + is_nullable: 0 + +=head2 reason + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 inserted_time + + data_type: 'integer' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qfO+Hb8mlzIkROudKw2cNg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/kamailio/Result/xcap.pm b/lib/NGCP/Schema/kamailio/Result/xcap.pm new file mode 100644 index 00000000..bbddf623 --- /dev/null +++ b/lib/NGCP/Schema/kamailio/Result/xcap.pm @@ -0,0 +1,136 @@ +package NGCP::Schema::kamailio::Result::xcap; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("xcap"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "doc", + { data_type => "mediumblob", is_nullable => 0 }, + "doc_type", + { data_type => "integer", is_nullable => 0 }, + "etag", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "source", + { data_type => "integer", is_nullable => 0 }, + "doc_uri", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "port", + { data_type => "integer", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("doc_uri_idx", ["doc_uri"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::kamailio::Result::xcap + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 doc + + data_type: 'mediumblob' + is_nullable: 0 + +=head2 doc_type + + data_type: 'integer' + is_nullable: 0 + +=head2 etag + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 source + + data_type: 'integer' + is_nullable: 0 + +=head2 doc_uri + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 port + + data_type: 'integer' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:07 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+LeAYUB4BaXxB19pZbyDg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/ngcp.pm b/lib/NGCP/Schema/ngcp.pm new file mode 100644 index 00000000..78db6ca2 --- /dev/null +++ b/lib/NGCP/Schema/ngcp.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::ngcp; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:10 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HaeajGU5mgRqKaRe2CK56A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/ngcp/Result/cfg_schema.pm b/lib/NGCP/Schema/ngcp/Result/cfg_schema.pm new file mode 100644 index 00000000..048ee18f --- /dev/null +++ b/lib/NGCP/Schema/ngcp/Result/cfg_schema.pm @@ -0,0 +1,108 @@ +package NGCP::Schema::ngcp::Result::cfg_schema; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("cfg_schema"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "revision", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "node", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "applied_at", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::ngcp::Result::cfg_schema + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 revision + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 node + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 applied_at + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:11 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KmnxpALEteHzF7jGzjz9gQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/ngcp/Result/db_schema.pm b/lib/NGCP/Schema/ngcp/Result/db_schema.pm new file mode 100644 index 00000000..32ac2e04 --- /dev/null +++ b/lib/NGCP/Schema/ngcp/Result/db_schema.pm @@ -0,0 +1,108 @@ +package NGCP::Schema::ngcp::Result::db_schema; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("db_schema"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "revision", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "node", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "applied_at", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::ngcp::Result::db_schema + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 revision + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 node + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 applied_at + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:11 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SeHfSagAfyg6VhayvYM6cQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning.pm b/lib/NGCP/Schema/provisioning.pm new file mode 100644 index 00000000..f74eb960 --- /dev/null +++ b/lib/NGCP/Schema/provisioning.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::provisioning; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZXzIpOFDxVoY7UfJoB1ddg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/provisioning/Result/language_strings.pm b/lib/NGCP/Schema/provisioning/Result/language_strings.pm new file mode 100644 index 00000000..96959ff2 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/language_strings.pm @@ -0,0 +1,101 @@ +package NGCP::Schema::provisioning::Result::language_strings; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("language_strings"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "code", + { data_type => "varchar", is_nullable => 0, size => 63 }, + "language", + { data_type => "char", is_nullable => 0, size => 2 }, + "string", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("codelang_idx", ["code", "language"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::language_strings + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 code + + data_type: 'varchar' + is_nullable: 0 + size: 63 + +=head2 language + + data_type: 'char' + is_nullable: 0 + size: 2 + +=head2 string + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2H4XP6MRU0yxCezKmSl2IQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_aig_sequence.pm b/lib/NGCP/Schema/provisioning/Result/voip_aig_sequence.pm new file mode 100644 index 00000000..3c97116b --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_aig_sequence.pm @@ -0,0 +1,63 @@ +package NGCP::Schema::provisioning::Result::voip_aig_sequence; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_aig_sequence"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_aig_sequence + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KcJ9xSYjXopqzdP/2HT8ew + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_allowed_ip_groups.pm b/lib/NGCP/Schema/provisioning/Result/voip_allowed_ip_groups.pm new file mode 100644 index 00000000..79095c73 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_allowed_ip_groups.pm @@ -0,0 +1,94 @@ +package NGCP::Schema::provisioning::Result::voip_allowed_ip_groups; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_allowed_ip_groups"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "group_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "ipnet", + { data_type => "varchar", is_nullable => 0, size => 18 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("groupnet_idx", ["group_id", "ipnet"]); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_allowed_ip_groups + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 ipnet + + data_type: 'varchar' + is_nullable: 0 + size: 18 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bkluLD2EVqCk3p+Q2bfxRA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cc_mappings.pm b/lib/NGCP/Schema/provisioning/Result/voip_cc_mappings.pm new file mode 100644 index 00000000..a8999ba8 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cc_mappings.pm @@ -0,0 +1,104 @@ +package NGCP::Schema::provisioning::Result::voip_cc_mappings; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cc_mappings"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, + "auth_key", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "source_uuid", + { data_type => "char", is_nullable => 0, size => 36 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "uuid", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { uuid => "uuid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cc_mappings + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'char' + is_foreign_key: 1 + is_nullable: 0 + size: 36 + +=head2 auth_key + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 source_uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 uuid + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:43nnNdcepZsZ9juHXZDgAg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cf_destination_sets.pm b/lib/NGCP/Schema/provisioning/Result/voip_cf_destination_sets.pm new file mode 100644 index 00000000..dc2a236c --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cf_destination_sets.pm @@ -0,0 +1,134 @@ +package NGCP::Schema::provisioning::Result::voip_cf_destination_sets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cf_destination_sets"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "voip_cf_destinations", + "NGCP::Schema::provisioning::Result::voip_cf_destinations", + { "foreign.destination_set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_cf_mappings", + "NGCP::Schema::provisioning::Result::voip_cf_mappings", + { "foreign.destination_set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cf_destination_sets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=head2 voip_cf_destinations + +Type: has_many + +Related object: L + +=head2 voip_cf_mappings + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jzgHoR8eqnkORVky+naZAQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cf_destinations.pm b/lib/NGCP/Schema/provisioning/Result/voip_cf_destinations.pm new file mode 100644 index 00000000..dfdb8efc --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cf_destinations.pm @@ -0,0 +1,123 @@ +package NGCP::Schema::provisioning::Result::voip_cf_destinations; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cf_destinations"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "destination_set_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "priority", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "timeout", + { + data_type => "integer", + default_value => 300, + extra => { unsigned => 1 }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "destination_set", + "NGCP::Schema::provisioning::Result::voip_cf_destination_sets", + { id => "destination_set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cf_destinations + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 destination_set_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 priority + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 timeout + + data_type: 'integer' + default_value: 300 + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 destination_set + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OauNwwi9nyhJrV+Rpc2FyA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cf_mappings.pm b/lib/NGCP/Schema/provisioning/Result/voip_cf_mappings.pm new file mode 100644 index 00000000..f824d96b --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cf_mappings.pm @@ -0,0 +1,173 @@ +package NGCP::Schema::provisioning::Result::voip_cf_mappings; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cf_mappings"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "type", + { + data_type => "enum", + default_value => "cfu", + extra => { list => ["cfu", "cfb", "cfna", "cft"] }, + is_nullable => 0, + }, + "destination_set_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "time_set_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "destination_set", + "NGCP::Schema::provisioning::Result::voip_cf_destination_sets", + { id => "destination_set_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "time_set", + "NGCP::Schema::provisioning::Result::voip_cf_time_sets", + { id => "time_set_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cf_mappings + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 type + + data_type: 'enum' + default_value: 'cfu' + extra: {list => ["cfu","cfb","cfna","cft"]} + is_nullable: 0 + +=head2 destination_set_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 time_set_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 destination_set + +Type: belongs_to + +Related object: L + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=head2 time_set + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zb01NvZyUBxA2wunZRw8pw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cf_periods.pm b/lib/NGCP/Schema/provisioning/Result/voip_cf_periods.pm new file mode 100644 index 00000000..6a130291 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cf_periods.pm @@ -0,0 +1,141 @@ +package NGCP::Schema::provisioning::Result::voip_cf_periods; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cf_periods"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "time_set_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "year", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "month", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "mday", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "wday", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "hour", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "minute", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "time_set", + "NGCP::Schema::provisioning::Result::voip_cf_time_sets", + { id => "time_set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cf_periods + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 time_set_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 year + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 month + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 mday + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 wday + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 hour + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 minute + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 time_set + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Sgsm1mPHqrXF7zM5CMLDeA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_cf_time_sets.pm b/lib/NGCP/Schema/provisioning/Result/voip_cf_time_sets.pm new file mode 100644 index 00000000..3e88c152 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_cf_time_sets.pm @@ -0,0 +1,134 @@ +package NGCP::Schema::provisioning::Result::voip_cf_time_sets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_cf_time_sets"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->has_many( + "voip_cf_mappings", + "NGCP::Schema::provisioning::Result::voip_cf_mappings", + { "foreign.time_set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_cf_periods", + "NGCP::Schema::provisioning::Result::voip_cf_periods", + { "foreign.time_set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_cf_time_sets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=head2 voip_cf_mappings + +Type: has_many + +Related object: L + +=head2 voip_cf_periods + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Jr4rIOQeW9z7SQCtkMiv/g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_contacts.pm b/lib/NGCP/Schema/provisioning/Result/voip_contacts.pm new file mode 100644 index 00000000..205e66f3 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_contacts.pm @@ -0,0 +1,165 @@ +package NGCP::Schema::provisioning::Result::voip_contacts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_contacts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "firstname", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "lastname", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "company", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "phonenumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "homephonenumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "mobilenumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "faxnumber", + { data_type => "varchar", is_nullable => 1, size => 31 }, + "email", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "homepage", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_contacts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 firstname + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 lastname + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 company + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 phonenumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 homephonenumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 mobilenumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 faxnumber + + data_type: 'varchar' + is_nullable: 1 + size: 31 + +=head2 email + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 homepage + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mPhI+VtDN8sw9NxuD6qgcw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_dbaliases.pm b/lib/NGCP/Schema/provisioning/Result/voip_dbaliases.pm new file mode 100644 index 00000000..e039fac2 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_dbaliases.pm @@ -0,0 +1,144 @@ +package NGCP::Schema::provisioning::Result::voip_dbaliases; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_dbaliases"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "domain_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("user_dom_idx", ["username", "domain_id"]); + + +__PACKAGE__->belongs_to( + "domain", + "NGCP::Schema::provisioning::Result::voip_domains", + { id => "domain_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_dbaliases + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 domain_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 domain + +Type: belongs_to + +Related object: L + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uSqMShuk9k4653Q68dbYdw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_dom_preferences.pm b/lib/NGCP/Schema/provisioning/Result/voip_dom_preferences.pm new file mode 100644 index 00000000..b574e3ef --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_dom_preferences.pm @@ -0,0 +1,143 @@ +package NGCP::Schema::provisioning::Result::voip_dom_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_dom_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "domain_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "attribute_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "value", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "attribute", + "NGCP::Schema::provisioning::Result::voip_preferences", + { id => "attribute_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "domain", + "NGCP::Schema::provisioning::Result::voip_domains", + { id => "domain_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_dom_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 domain_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 attribute_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 attribute + +Type: belongs_to + +Related object: L + +=head2 domain + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:35 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PJknbMy58oNMu8B5IDkNNw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_domains.pm b/lib/NGCP/Schema/provisioning/Result/voip_domains.pm new file mode 100644 index 00000000..7626336f --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_domains.pm @@ -0,0 +1,128 @@ +package NGCP::Schema::provisioning::Result::voip_domains; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_domains"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "domain", + { data_type => "varchar", is_nullable => 0, size => 127 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]); + + +__PACKAGE__->has_many( + "voip_dbaliases", + "NGCP::Schema::provisioning::Result::voip_dbaliases", + { "foreign.domain_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_dom_preferences", + "NGCP::Schema::provisioning::Result::voip_dom_preferences", + { "foreign.domain_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_subscribers", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { "foreign.domain_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_domains + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 domain + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_dbaliases + +Type: has_many + +Related object: L + +=head2 voip_dom_preferences + +Type: has_many + +Related object: L + +=head2 voip_subscribers + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:C5yEvUxBcN74gbFd0i1dlg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_fax_destinations.pm b/lib/NGCP/Schema/provisioning/Result/voip_fax_destinations.pm new file mode 100644 index 00000000..f56eb764 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_fax_destinations.pm @@ -0,0 +1,162 @@ +package NGCP::Schema::provisioning::Result::voip_fax_destinations; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_fax_destinations"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "filetype", + { + data_type => "enum", + default_value => "TIFF", + extra => { list => ["PS", "TIFF", "PDF", "PDF14"] }, + is_nullable => 0, + }, + "cc", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "incoming", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "outgoing", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "status", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("subdest_idx", ["subscriber_id", "destination"]); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_fax_destinations + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 filetype + + data_type: 'enum' + default_value: 'TIFF' + extra: {list => ["PS","TIFF","PDF","PDF14"]} + is_nullable: 0 + +=head2 cc + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 incoming + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 outgoing + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 status + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x81yb2o/zAJiyFRW1BibNg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_fax_preferences.pm b/lib/NGCP/Schema/provisioning/Result/voip_fax_preferences.pm new file mode 100644 index 00000000..dc0a9f0e --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_fax_preferences.pm @@ -0,0 +1,146 @@ +package NGCP::Schema::provisioning::Result::voip_fax_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_fax_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "password", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "name", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "active", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "send_status", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "send_copy", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("subscriberid_idx", ["subscriber_id"]); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_fax_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 password + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 name + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 active + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 send_status + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 send_copy + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EGhEcaS0NPteqUN4dtSuaQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_peer_groups.pm b/lib/NGCP/Schema/provisioning/Result/voip_peer_groups.pm new file mode 100644 index 00000000..57c3b0fc --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_peer_groups.pm @@ -0,0 +1,138 @@ +package NGCP::Schema::provisioning::Result::voip_peer_groups; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_peer_groups"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "priority", + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "description", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "peering_contract_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("name", ["name"]); + + +__PACKAGE__->has_many( + "voip_peer_hosts", + "NGCP::Schema::provisioning::Result::voip_peer_hosts", + { "foreign.group_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_peer_rules", + "NGCP::Schema::provisioning::Result::voip_peer_rules", + { "foreign.group_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_peer_groups + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 priority + + data_type: 'tinyint' + default_value: 1 + is_nullable: 0 + +=head2 description + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 peering_contract_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_peer_hosts + +Type: has_many + +Related object: L + +=head2 voip_peer_rules + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c55LWz8pAbB+YyO6DuXahA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_peer_hosts.pm b/lib/NGCP/Schema/provisioning/Result/voip_peer_hosts.pm new file mode 100644 index 00000000..2d6e3890 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_peer_hosts.pm @@ -0,0 +1,179 @@ +package NGCP::Schema::provisioning::Result::voip_peer_hosts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_peer_hosts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "group_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "name", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "ip", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "host", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "port", + { data_type => "integer", default_value => 5060, is_nullable => 0 }, + "transport", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 1 }, + "weight", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "via_lb", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("grpname", ["group_id", "name"]); + + +__PACKAGE__->belongs_to( + "group", + "NGCP::Schema::provisioning::Result::voip_peer_groups", + { id => "group_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "voip_peer_preferences", + "NGCP::Schema::provisioning::Result::voip_peer_preferences", + { "foreign.peer_host_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_peer_hosts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 ip + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 host + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 port + + data_type: 'integer' + default_value: 5060 + is_nullable: 0 + +=head2 transport + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 weight + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 via_lb + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 group + +Type: belongs_to + +Related object: L + +=head2 voip_peer_preferences + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BWd7T/NWAN6jPxg4Q907+Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_peer_preferences.pm b/lib/NGCP/Schema/provisioning/Result/voip_peer_preferences.pm new file mode 100644 index 00000000..a9d8905a --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_peer_preferences.pm @@ -0,0 +1,143 @@ +package NGCP::Schema::provisioning::Result::voip_peer_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_peer_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "peer_host_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "attribute_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "value", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "attribute", + "NGCP::Schema::provisioning::Result::voip_preferences", + { id => "attribute_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "peer_host", + "NGCP::Schema::provisioning::Result::voip_peer_hosts", + { id => "peer_host_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_peer_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 peer_host_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 attribute_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 attribute + +Type: belongs_to + +Related object: L + +=head2 peer_host + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NbLL+m8gyaf2PBSw8cHREQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_peer_rules.pm b/lib/NGCP/Schema/provisioning/Result/voip_peer_rules.pm new file mode 100644 index 00000000..0ea66de4 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_peer_rules.pm @@ -0,0 +1,127 @@ +package NGCP::Schema::provisioning::Result::voip_peer_rules; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_peer_rules"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "group_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "callee_prefix", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, + "callee_pattern", + { data_type => "varchar", default_value => "", is_nullable => 1, size => 64 }, + "caller_pattern", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "description", + { data_type => "varchar", is_nullable => 0, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "group", + "NGCP::Schema::provisioning::Result::voip_peer_groups", + { id => "group_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_peer_rules + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 callee_prefix + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 64 + +=head2 callee_pattern + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 1 + size: 64 + +=head2 caller_pattern + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 description + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 group + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1/DsV7mtQhdRy9YFgTJ+Pg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_preferences.pm b/lib/NGCP/Schema/provisioning/Result/voip_preferences.pm new file mode 100644 index 00000000..10127857 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_preferences.pm @@ -0,0 +1,231 @@ +package NGCP::Schema::provisioning::Result::voip_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "attribute", + { data_type => "varchar", is_nullable => 0, size => 31 }, + "type", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "max_occur", + { data_type => "tinyint", extra => { unsigned => 1 }, is_nullable => 0 }, + "usr_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "dom_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "peer_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "internal", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "data_type", + { + data_type => "enum", + extra => { list => ["boolean", "int", "string", "enum"] }, + is_nullable => 1, + }, + "read_only", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "description", + { data_type => "text", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("attribute_idx", ["attribute"]); + + +__PACKAGE__->has_many( + "voip_dom_preferences", + "NGCP::Schema::provisioning::Result::voip_dom_preferences", + { "foreign.attribute_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_peer_preferences", + "NGCP::Schema::provisioning::Result::voip_peer_preferences", + { "foreign.attribute_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_preferences_enums", + "NGCP::Schema::provisioning::Result::voip_preferences_enum", + { "foreign.preference_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_usr_preferences", + "NGCP::Schema::provisioning::Result::voip_usr_preferences", + { "foreign.attribute_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 attribute + + data_type: 'varchar' + is_nullable: 0 + size: 31 + +=head2 type + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 max_occur + + data_type: 'tinyint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 usr_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 dom_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 peer_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 internal + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 data_type + + data_type: 'enum' + extra: {list => ["boolean","int","string","enum"]} + is_nullable: 1 + +=head2 read_only + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 description + + data_type: 'text' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_dom_preferences + +Type: has_many + +Related object: L + +=head2 voip_peer_preferences + +Type: has_many + +Related object: L + +=head2 voip_preferences_enums + +Type: has_many + +Related object: L + +=head2 voip_usr_preferences + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nTXS0lnMB6gIJjvfedRDvA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_preferences_enum.pm b/lib/NGCP/Schema/provisioning/Result/voip_preferences_enum.pm new file mode 100644 index 00000000..40e12abc --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_preferences_enum.pm @@ -0,0 +1,139 @@ +package NGCP::Schema::provisioning::Result::voip_preferences_enum; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_preferences_enum"); + + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "preference_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 1, + }, + "label", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "value", + { data_type => "varchar", is_nullable => 1, size => 128 }, + "usr_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "dom_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "peer_pref", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "default_val", + { data_type => "tinyint", is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "preference", + "NGCP::Schema::provisioning::Result::voip_preferences", + { id => "preference_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "RESTRICT", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_preferences_enum + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 preference_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 1 + +=head2 label + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 value + + data_type: 'varchar' + is_nullable: 1 + size: 128 + +=head2 usr_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + +=head2 dom_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + +=head2 peer_pref + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + +=head2 default_val + + data_type: 'tinyint' + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 preference + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pcGcdsil8CmPS1gvCsMQpQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_reminder.pm b/lib/NGCP/Schema/provisioning/Result/voip_reminder.pm new file mode 100644 index 00000000..f5050243 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_reminder.pm @@ -0,0 +1,127 @@ +package NGCP::Schema::provisioning::Result::voip_reminder; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_reminder"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "time", + { data_type => "time", is_nullable => 0 }, + "recur", + { + data_type => "enum", + default_value => "never", + extra => { list => ["never", "weekdays", "always"] }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("subscriber_id", ["subscriber_id"]); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_reminder + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 time + + data_type: 'time' + is_nullable: 0 + +=head2 recur + + data_type: 'enum' + default_value: 'never' + extra: {list => ["never","weekdays","always"]} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/3SbBCUc1BM+YUvu7vI6QQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rule_sets.pm b/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rule_sets.pm new file mode 100644 index 00000000..3c080157 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rule_sets.pm @@ -0,0 +1,140 @@ +package NGCP::Schema::provisioning::Result::voip_rewrite_rule_sets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_rewrite_rule_sets"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 32 }, + "description", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "caller_in_dpid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "callee_in_dpid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "caller_out_dpid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "callee_out_dpid", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("name_idx", ["name"]); + + +__PACKAGE__->has_many( + "voip_rewrite_rules", + "NGCP::Schema::provisioning::Result::voip_rewrite_rules", + { "foreign.set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_rewrite_rule_sets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 32 + +=head2 description + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 caller_in_dpid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 callee_in_dpid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 caller_out_dpid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 callee_out_dpid + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_rewrite_rules + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZzRalh7Zbd+cmbwL9eVMw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rules.pm b/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rules.pm new file mode 100644 index 00000000..8438dadc --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_rewrite_rules.pm @@ -0,0 +1,161 @@ +package NGCP::Schema::provisioning::Result::voip_rewrite_rules; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_rewrite_rules"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "set_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "match_pattern", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 128 }, + "replace_pattern", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "description", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 127 }, + "direction", + { + data_type => "enum", + default_value => "in", + extra => { list => ["in", "out"] }, + is_nullable => 0, + }, + "field", + { + data_type => "enum", + default_value => "caller", + extra => { list => ["caller", "callee"] }, + is_nullable => 0, + }, + "priority", + { + data_type => "integer", + default_value => 50, + extra => { unsigned => 1 }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "set", + "NGCP::Schema::provisioning::Result::voip_rewrite_rule_sets", + { id => "set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_rewrite_rules + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 set_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 match_pattern + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 128 + +=head2 replace_pattern + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 description + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 127 + +=head2 direction + + data_type: 'enum' + default_value: 'in' + extra: {list => ["in","out"]} + is_nullable: 0 + +=head2 field + + data_type: 'enum' + default_value: 'caller' + extra: {list => ["caller","callee"]} + is_nullable: 0 + +=head2 priority + + data_type: 'integer' + default_value: 50 + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 set + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uQ0fipNB2whIuN+4/VL/YA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_rwrs_sequence.pm b/lib/NGCP/Schema/provisioning/Result/voip_rwrs_sequence.pm new file mode 100644 index 00000000..55a66ac0 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_rwrs_sequence.pm @@ -0,0 +1,63 @@ +package NGCP::Schema::provisioning::Result::voip_rwrs_sequence; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_rwrs_sequence"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_rwrs_sequence + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qwbFP73+9WKGI4DDg5bRyw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_sound_files.pm b/lib/NGCP/Schema/provisioning/Result/voip_sound_files.pm new file mode 100644 index 00000000..3e60b114 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_sound_files.pm @@ -0,0 +1,145 @@ +package NGCP::Schema::provisioning::Result::voip_sound_files; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_sound_files"); + + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "filename", + { data_type => "varchar", is_nullable => 1, size => 256 }, + "data", + { data_type => "longblob", is_nullable => 1 }, + "handle_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "set_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "loopplay", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "codec", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "handle", + "NGCP::Schema::provisioning::Result::voip_sound_handles", + { id => "handle_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +__PACKAGE__->belongs_to( + "set", + "NGCP::Schema::provisioning::Result::voip_sound_sets", + { id => "set_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_sound_files + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 filename + + data_type: 'varchar' + is_nullable: 1 + size: 256 + +=head2 data + + data_type: 'longblob' + is_nullable: 1 + +=head2 handle_id + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 set_id + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 loopplay + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + +=head2 codec + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 handle + +Type: belongs_to + +Related object: L + +=head2 set + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3TJUVCz1fRaHE8cuxrVTwA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_sound_handles.pm b/lib/NGCP/Schema/provisioning/Result/voip_sound_handles.pm new file mode 100644 index 00000000..87461157 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_sound_handles.pm @@ -0,0 +1,81 @@ +package NGCP::Schema::provisioning::Result::voip_sound_handles; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_sound_handles"); + + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "name", + { data_type => "varchar", is_nullable => 1, size => 256 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "voip_sound_files", + "NGCP::Schema::provisioning::Result::voip_sound_files", + { "foreign.handle_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_sound_handles + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 1 + size: 256 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_sound_files + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GIgEYRmN382A9HnWc0/WKQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_sound_sets.pm b/lib/NGCP/Schema/provisioning/Result/voip_sound_sets.pm new file mode 100644 index 00000000..8355ddb9 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_sound_sets.pm @@ -0,0 +1,89 @@ +package NGCP::Schema::provisioning::Result::voip_sound_sets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_sound_sets"); + + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "name", + { data_type => "varchar", is_nullable => 1, size => 256 }, + "description", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "voip_sound_files", + "NGCP::Schema::provisioning::Result::voip_sound_files", + { "foreign.set_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_sound_sets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 1 + size: 256 + +=head2 description + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 voip_sound_files + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wMjfDxiKN8D32xLTZGs35Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_speed_dial.pm b/lib/NGCP/Schema/provisioning/Result/voip_speed_dial.pm new file mode 100644 index 00000000..ed40490c --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_speed_dial.pm @@ -0,0 +1,124 @@ +package NGCP::Schema::provisioning::Result::voip_speed_dial; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_speed_dial"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "slot", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "destination", + { data_type => "varchar", is_nullable => 0, size => 192 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("subscriberid_slot_idx", ["subscriber_id", "slot"]); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_speed_dial + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 slot + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 destination + + data_type: 'varchar' + is_nullable: 0 + size: 192 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2DX9bgN2VH5CKMbMjJcYNw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_subscribers.pm b/lib/NGCP/Schema/provisioning/Result/voip_subscribers.pm new file mode 100644 index 00000000..7114fb4c --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_subscribers.pm @@ -0,0 +1,400 @@ +package NGCP::Schema::provisioning::Result::voip_subscribers; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_subscribers"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "username", + { data_type => "varchar", is_nullable => 0, size => 127 }, + "domain_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "uuid", + { data_type => "char", is_nullable => 0, size => 36 }, + "password", + { data_type => "varchar", is_nullable => 1, size => 40 }, + "admin", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "account_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "webusername", + { data_type => "varchar", is_nullable => 1, size => 127 }, + "webpassword", + { data_type => "varchar", is_nullable => 1, size => 40 }, + "autoconf_displayname", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "autoconf_group_id", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "create_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00 00:00:00", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->add_unique_constraint("user_dom_idx", ["username", "domain_id"]); + + +__PACKAGE__->add_unique_constraint("uuid_idx", ["uuid"]); + + +__PACKAGE__->add_unique_constraint("webuser_dom_idx", ["webusername", "domain_id"]); + + +__PACKAGE__->belongs_to( + "domain", + "NGCP::Schema::provisioning::Result::voip_domains", + { id => "domain_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->has_many( + "voip_cc_mappings", + "NGCP::Schema::provisioning::Result::voip_cc_mappings", + { "foreign.uuid" => "self.uuid" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_cf_destination_sets", + "NGCP::Schema::provisioning::Result::voip_cf_destination_sets", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_cf_mappings", + "NGCP::Schema::provisioning::Result::voip_cf_mappings", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_cf_time_sets", + "NGCP::Schema::provisioning::Result::voip_cf_time_sets", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_contacts", + "NGCP::Schema::provisioning::Result::voip_contacts", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_dbaliases", + "NGCP::Schema::provisioning::Result::voip_dbaliases", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_fax_destinations", + "NGCP::Schema::provisioning::Result::voip_fax_destinations", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->might_have( + "voip_fax_preference", + "NGCP::Schema::provisioning::Result::voip_fax_preferences", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->might_have( + "voip_reminder", + "NGCP::Schema::provisioning::Result::voip_reminder", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_speed_dials", + "NGCP::Schema::provisioning::Result::voip_speed_dial", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_trusted_sources", + "NGCP::Schema::provisioning::Result::voip_trusted_sources", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +__PACKAGE__->has_many( + "voip_usr_preferences", + "NGCP::Schema::provisioning::Result::voip_usr_preferences", + { "foreign.subscriber_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_subscribers + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 username + + data_type: 'varchar' + is_nullable: 0 + size: 127 + +=head2 domain_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 uuid + + data_type: 'char' + is_nullable: 0 + size: 36 + +=head2 password + + data_type: 'varchar' + is_nullable: 1 + size: 40 + +=head2 admin + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 account_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 webusername + + data_type: 'varchar' + is_nullable: 1 + size: 127 + +=head2 webpassword + + data_type: 'varchar' + is_nullable: 1 + size: 40 + +=head2 autoconf_displayname + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 autoconf_group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 create_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00 00:00:00' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=back + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=head1 RELATIONS + +=head2 domain + +Type: belongs_to + +Related object: L + +=head2 voip_cc_mappings + +Type: has_many + +Related object: L + +=head2 voip_cf_destination_sets + +Type: has_many + +Related object: L + +=head2 voip_cf_mappings + +Type: has_many + +Related object: L + +=head2 voip_cf_time_sets + +Type: has_many + +Related object: L + +=head2 voip_contacts + +Type: has_many + +Related object: L + +=head2 voip_dbaliases + +Type: has_many + +Related object: L + +=head2 voip_fax_destinations + +Type: has_many + +Related object: L + +=head2 voip_fax_preference + +Type: might_have + +Related object: L + +=head2 voip_reminder + +Type: might_have + +Related object: L + +=head2 voip_speed_dials + +Type: has_many + +Related object: L + +=head2 voip_trusted_sources + +Type: has_many + +Related object: L + +=head2 voip_usr_preferences + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WMuKRIVdC4iRHb9EH6cr/w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_trusted_sources.pm b/lib/NGCP/Schema/provisioning/Result/voip_trusted_sources.pm new file mode 100644 index 00000000..b6e56e76 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_trusted_sources.pm @@ -0,0 +1,125 @@ +package NGCP::Schema::provisioning::Result::voip_trusted_sources; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_trusted_sources"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "src_ip", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "protocol", + { data_type => "varchar", is_nullable => 0, size => 4 }, + "from_pattern", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "uuid", + { data_type => "varchar", is_nullable => 1, size => 64 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_trusted_sources + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 src_ip + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 protocol + + data_type: 'varchar' + is_nullable: 0 + size: 4 + +=head2 from_pattern + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 uuid + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MifxsqYWTK4a2KPMyglSsg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/voip_usr_preferences.pm b/lib/NGCP/Schema/provisioning/Result/voip_usr_preferences.pm new file mode 100644 index 00000000..d3ea744a --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/voip_usr_preferences.pm @@ -0,0 +1,143 @@ +package NGCP::Schema::provisioning::Result::voip_usr_preferences; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("voip_usr_preferences"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "subscriber_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "attribute_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "value", + { data_type => "varchar", is_nullable => 0, size => 128 }, + "modify_timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "attribute", + "NGCP::Schema::provisioning::Result::voip_preferences", + { id => "attribute_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "subscriber", + "NGCP::Schema::provisioning::Result::voip_subscribers", + { id => "subscriber_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::voip_usr_preferences + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 subscriber_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 attribute_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 value + + data_type: 'varchar' + is_nullable: 0 + size: 128 + +=head2 modify_timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 attribute + +Type: belongs_to + +Related object: L + +=head2 subscriber + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wa5EVf4Me/5zK7t61E3NQA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/xmlgroups.pm b/lib/NGCP/Schema/provisioning/Result/xmlgroups.pm new file mode 100644 index 00000000..73be6c10 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/xmlgroups.pm @@ -0,0 +1,87 @@ +package NGCP::Schema::provisioning::Result::xmlgroups; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("xmlgroups"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "name", + { data_type => "varchar", is_nullable => 0, size => 32 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "xmlhostgroups", + "NGCP::Schema::provisioning::Result::xmlhostgroups", + { "foreign.group_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::xmlgroups + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 32 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 xmlhostgroups + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fRyEPj+RZ4+j95ZiJz8mJA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/xmlhostgroups.pm b/lib/NGCP/Schema/provisioning/Result/xmlhostgroups.pm new file mode 100644 index 00000000..598b9bcf --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/xmlhostgroups.pm @@ -0,0 +1,121 @@ +package NGCP::Schema::provisioning::Result::xmlhostgroups; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("xmlhostgroups"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "group_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, + "host_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_foreign_key => 1, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->belongs_to( + "group", + "NGCP::Schema::provisioning::Result::xmlgroups", + { id => "group_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +__PACKAGE__->belongs_to( + "host", + "NGCP::Schema::provisioning::Result::xmlhosts", + { id => "host_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::xmlhostgroups + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 group_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head2 host_id + + data_type: 'integer' + extra: {unsigned => 1} + is_foreign_key: 1 + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 group + +Type: belongs_to + +Related object: L + +=head2 host + +Type: belongs_to + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MkulOQsxvuxv7U7hbYAe8Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/xmlhosts.pm b/lib/NGCP/Schema/provisioning/Result/xmlhosts.pm new file mode 100644 index 00000000..742a7311 --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/xmlhosts.pm @@ -0,0 +1,120 @@ +package NGCP::Schema::provisioning::Result::xmlhosts; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("xmlhosts"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "ip", + { data_type => "varchar", is_nullable => 0, size => 15 }, + "port", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "path", + { data_type => "varchar", default_value => "/", is_nullable => 0, size => 64 }, + "sip_port", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, + "description", + { data_type => "varchar", is_nullable => 1, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); + + +__PACKAGE__->has_many( + "xmlhostgroups", + "NGCP::Schema::provisioning::Result::xmlhostgroups", + { "foreign.host_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::xmlhosts + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 ip + + data_type: 'varchar' + is_nullable: 0 + size: 15 + +=head2 port + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 path + + data_type: 'varchar' + default_value: '/' + is_nullable: 0 + size: 64 + +=head2 sip_port + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 1 + +=head2 description + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=head1 RELATIONS + +=head2 xmlhostgroups + +Type: has_many + +Related object: L + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bKP4/UvcCDVtRtSwxbUVQw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/provisioning/Result/xmlqueue.pm b/lib/NGCP/Schema/provisioning/Result/xmlqueue.pm new file mode 100644 index 00000000..ed6ea5bc --- /dev/null +++ b/lib/NGCP/Schema/provisioning/Result/xmlqueue.pm @@ -0,0 +1,110 @@ +package NGCP::Schema::provisioning::Result::xmlqueue; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("xmlqueue"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "target", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "body", + { data_type => "text", is_nullable => 0 }, + "ctime", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "atime", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "tries", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, + "next_try", + { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::provisioning::Result::xmlqueue + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 target + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 body + + data_type: 'text' + is_nullable: 0 + +=head2 ctime + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 atime + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 tries + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 next_try + + data_type: 'integer' + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:36 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N6C3hmNWZjUdgfscETaV+w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/sipstats.pm b/lib/NGCP/Schema/sipstats.pm new file mode 100644 index 00000000..fe1afc4e --- /dev/null +++ b/lib/NGCP/Schema/sipstats.pm @@ -0,0 +1,19 @@ +package NGCP::Schema::sipstats; +use Sipwise::Base; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +extends 'DBIx::Class::Schema'; + +__PACKAGE__->load_namespaces; + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SlhBwDKFfwYTffFdQ6IR8w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable(inline_constructor => 0); +1; diff --git a/lib/NGCP/Schema/sipstats/Result/mark.pm b/lib/NGCP/Schema/sipstats/Result/mark.pm new file mode 100644 index 00000000..ec314163 --- /dev/null +++ b/lib/NGCP/Schema/sipstats/Result/mark.pm @@ -0,0 +1,65 @@ +package NGCP::Schema::sipstats::Result::mark; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("mark"); + + +__PACKAGE__->add_columns( + "name", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "value", + { data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("name"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::sipstats::Result::mark + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 value + + data_type: 'bigint' + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5Dc7/BHiBc7zalmSkcUlSA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/sipstats/Result/message_packets.pm b/lib/NGCP/Schema/sipstats/Result/message_packets.pm new file mode 100644 index 00000000..e5154080 --- /dev/null +++ b/lib/NGCP/Schema/sipstats/Result/message_packets.pm @@ -0,0 +1,67 @@ +package NGCP::Schema::sipstats::Result::message_packets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("message_packets"); + + +__PACKAGE__->add_columns( + "message", + { data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 }, + "packet", + { data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("message", "packet"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::sipstats::Result::message_packets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 message + + data_type: 'bigint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 packet + + data_type: 'bigint' + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m9hkmSjJZ1kELLsaMofeYw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/sipstats/Result/messages.pm b/lib/NGCP/Schema/sipstats/Result/messages.pm new file mode 100644 index 00000000..ff30deae --- /dev/null +++ b/lib/NGCP/Schema/sipstats/Result/messages.pm @@ -0,0 +1,190 @@ +package NGCP::Schema::sipstats::Result::messages; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("messages"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "bigint", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "timestamp", + { data_type => "decimal", is_nullable => 0, size => [17, 6] }, + "protocol", + { + data_type => "enum", + extra => { list => ["IPv4", "IPv6"] }, + is_nullable => 0, + }, + "transport", + { + data_type => "enum", + extra => { list => ["UDP", "TCP"] }, + is_nullable => 0, + }, + "src_ip", + { data_type => "varchar", is_nullable => 0, size => 39 }, + "dst_ip", + { data_type => "varchar", is_nullable => 0, size => 39 }, + "src_port", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "dst_port", + { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 }, + "payload", + { data_type => "blob", is_nullable => 0 }, + "method", + { data_type => "varchar", is_nullable => 0, size => 20 }, + "cseq_method", + { data_type => "varchar", is_nullable => 0, size => 16 }, + "call_id", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "request_uri", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "from_uri", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "caller_uuid", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "callee_uuid", + { data_type => "varchar", is_nullable => 0, size => 255 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::sipstats::Result::messages + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'bigint' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 timestamp + + data_type: 'decimal' + is_nullable: 0 + size: [17,6] + +=head2 protocol + + data_type: 'enum' + extra: {list => ["IPv4","IPv6"]} + is_nullable: 0 + +=head2 transport + + data_type: 'enum' + extra: {list => ["UDP","TCP"]} + is_nullable: 0 + +=head2 src_ip + + data_type: 'varchar' + is_nullable: 0 + size: 39 + +=head2 dst_ip + + data_type: 'varchar' + is_nullable: 0 + size: 39 + +=head2 src_port + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 dst_port + + data_type: 'smallint' + extra: {unsigned => 1} + is_nullable: 0 + +=head2 payload + + data_type: 'blob' + is_nullable: 0 + +=head2 method + + data_type: 'varchar' + is_nullable: 0 + size: 20 + +=head2 cseq_method + + data_type: 'varchar' + is_nullable: 0 + size: 16 + +=head2 call_id + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 request_uri + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 from_uri + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 caller_uuid + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 callee_uuid + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t2sCJOEhiHcGYNhB6oNUog + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/sipstats/Result/packets.pm b/lib/NGCP/Schema/sipstats/Result/packets.pm new file mode 100644 index 00000000..f864ba7a --- /dev/null +++ b/lib/NGCP/Schema/sipstats/Result/packets.pm @@ -0,0 +1,108 @@ +package NGCP::Schema::sipstats::Result::packets; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("packets"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "bigint", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "timestamp", + { data_type => "decimal", is_nullable => 0, size => [17, 6] }, + "src_mac", + { data_type => "binary", is_nullable => 0, size => 6 }, + "dst_mac", + { data_type => "binary", is_nullable => 0, size => 6 }, + "header", + { data_type => "blob", is_nullable => 0 }, + "payload", + { data_type => "blob", is_nullable => 0 }, + "trailer", + { data_type => "blob", is_nullable => 0 }, +); + + +__PACKAGE__->set_primary_key("id"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::sipstats::Result::packets + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'bigint' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 timestamp + + data_type: 'decimal' + is_nullable: 0 + size: [17,6] + +=head2 src_mac + + data_type: 'binary' + is_nullable: 0 + size: 6 + +=head2 dst_mac + + data_type: 'binary' + is_nullable: 0 + size: 6 + +=head2 header + + data_type: 'blob' + is_nullable: 0 + +=head2 payload + + data_type: 'blob' + is_nullable: 0 + +=head2 trailer + + data_type: 'blob' + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qMiQuTby0xtuVNBqCRoiTg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1; diff --git a/lib/NGCP/Schema/sipstats/Result/statistics.pm b/lib/NGCP/Schema/sipstats/Result/statistics.pm new file mode 100644 index 00000000..8ae11ca7 --- /dev/null +++ b/lib/NGCP/Schema/sipstats/Result/statistics.pm @@ -0,0 +1,479 @@ +package NGCP::Schema::sipstats::Result::statistics; +use Sipwise::Base; +use MooseX::NonMoose; +our $VERSION = '1.000'; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + + + +extends 'DBIx::Class::Core'; + + +__PACKAGE__->table("statistics"); + + +__PACKAGE__->add_columns( + "id", + { + data_type => "bigint", + extra => { unsigned => 1 }, + is_auto_increment => 1, + is_nullable => 0, + }, + "timestamp", + { data_type => "decimal", is_nullable => 0, size => [17, 6] }, + "req_count", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_register", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_invite", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_bye", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_ack", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_prack", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_cancel", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_update", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_options", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_publish", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_subscribe", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_notify", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_message", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "req_other", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_count", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_18x", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_1xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_2xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_3xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_401", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_407", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_403", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_404", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_480", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_486", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_487", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_4xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_5xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, + "res_6xx", + { + data_type => "bigint", + default_value => 0, + extra => { unsigned => 1 }, + is_nullable => 0, + }, +); + + +__PACKAGE__->set_primary_key("id", "timestamp"); +=encoding UTF-8 + +=head1 NAME + +NGCP::Schema::sipstats::Result::statistics + +=head1 TABLE: C + +=head1 ACCESSORS + +=head2 id + + data_type: 'bigint' + extra: {unsigned => 1} + is_auto_increment: 1 + is_nullable: 0 + +=head2 timestamp + + data_type: 'decimal' + is_nullable: 0 + size: [17,6] + +=head2 req_count + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_register + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_invite + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_bye + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_ack + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_prack + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_cancel + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_update + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_options + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_publish + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_subscribe + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_notify + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_message + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 req_other + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_count + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_18x + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_1xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_2xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_3xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_401 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_407 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_403 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_404 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_480 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_486 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_487 + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_4xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_5xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head2 res_6xx + + data_type: 'bigint' + default_value: 0 + extra: {unsigned => 1} + is_nullable: 0 + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=item * L + +=back + +=cut + + +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-05 17:13:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vs554o1jwqWhWWrWusWURA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->meta->make_immutable; +1;