first dump including distro skeleton files

agranig/2.004-ramoptimized
Lars Dieckow 13 years ago
parent 9468d4c196
commit 3c448229bb

@ -0,0 +1,16 @@
use Module::Build qw();
my $builder = Module::Build->new(
module_name => 'NGCP-Schema',
license => 'restrictive',
dist_author => 'Lars Dieckow <ldieckow@sipwise.com>',
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;

@ -0,0 +1,9 @@
=encoding UTF-8
=head1 NAME
Changes - Revision history for NGCP-Schema
=head2 1.000 2013-02-05
Initial release.

@ -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<http://www.cpan.org/modules/INSTALL.html>.
=head1 DEPENDENCIES
See distribution meta file.
=head1 LICENCE
restricted

@ -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'
],
);
}

@ -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<NGCP::Schema::accounting>,
L<NGCP::Schema::billing>,
L<NGCP::Schema::carrier>,
L<NGCP::Schema::kamailio>,
L<NGCP::Schema::ngcp>,
L<NGCP::Schema::provisioning>,
L<NGCP::Schema::sipstats>.
=head1 BUGS AND LIMITATIONS
L<https://bugtracker.sipwise.com>
=head1 AUTHOR
Lars Dieckow C<< <ldieckow@sipwise.com> >>
=head1 LICENCE
restricted

@ -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;

@ -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<acc>
=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</id>
=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;

@ -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<acc_backup>
=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</id>
=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;

@ -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<acc_trash>
=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</id>
=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;

@ -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<cdr>
=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</id>
=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;

@ -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<mark>
=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</id>
=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;

@ -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<prepaid_costs>
=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</id>
=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;

@ -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;

@ -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<admins>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<login_idx>
=over 4
=item * L</login>
=back
=head1 RELATIONS
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<billing_fees>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<profdestype_idx>
=over 4
=item * L</billing_profile_id>
=item * L</destination>
=item * L</type>
=back
=head1 RELATIONS
=head2 billing_fees_histories
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_fees_history>
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=head2 billing_zone
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_zones>
=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;

@ -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<billing_fees_history>
=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</id>
=back
=head1 RELATIONS
=head2 bf
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_fees>
=head2 billing_zones_history
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_zones_history>
=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;

@ -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<billing_mappings>
=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</id>
=back
=head1 RELATIONS
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 product
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::products>
=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;

@ -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<billing_peaktime_special>
=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</id>
=back
=head1 RELATIONS
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=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;

@ -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<billing_peaktime_weekdays>
=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</id>
=back
=head1 RELATIONS
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=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;

@ -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<billing_profiles>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<reshand_idx>
=over 4
=item * L</reseller_id>
=item * L</handle>
=back
=head2 C<resnam_idx>
=over 4
=item * L</reseller_id>
=item * L</name>
=back
=head1 RELATIONS
=head2 billing_fees
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_fees>
=head2 billing_mappings
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_mappings>
=head2 billing_peaktime_specials
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_peaktime_special>
=head2 billing_peaktime_weekdays
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_peaktime_weekdays>
=head2 billing_zones
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_zones>
=head2 products
Type: has_many
Related object: L<NGCP::Schema::billing::Result::products>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<billing_zones>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<profnamdes_idx>
=over 4
=item * L</billing_profile_id>
=item * L</zone>
=item * L</detail>
=back
=head1 RELATIONS
=head2 billing_fees
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_fees>
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=head2 billing_zones_histories
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_zones_history>
=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;

@ -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<billing_zones_history>
=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</id>
=back
=head1 RELATIONS
=head2 billing_fees_histories
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_fees_history>
=head2 bz
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_zones>
=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;

@ -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<contacts>
=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</id>
=back
=head1 RELATIONS
=head2 contracts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 customers_comm_contacts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 customers_contacts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 customers_tech_contacts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 orders
Type: has_many
Related object: L<NGCP::Schema::billing::Result::orders>
=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;

@ -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<contract_balances>
=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</id>
=back
=head1 RELATIONS
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 contract_credits
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contract_credits>
=head2 invoice
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::invoices>
=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;

@ -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<contract_credits>
=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</id>
=back
=head1 RELATIONS
=head2 balance
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contract_balances>
=head2 credit_payments
Type: has_many
Related object: L<NGCP::Schema::billing::Result::credit_payments>
=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;

@ -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<contract_registers>
=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</id>
=back
=head1 RELATIONS
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contracts>
=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;

@ -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<contracts>
=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</id>
=back
=head1 RELATIONS
=head2 active_reseller
Type: might_have
Related object: L<NGCP::Schema::billing::Result::resellers>
=head2 billing_mappings
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_mappings>
=head2 contact
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contacts>
=head2 contract_balances
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contract_balances>
=head2 contract_registers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contract_registers>
=head2 customer
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 order
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::orders>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=head2 voip_subscribers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=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;

@ -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<credit_payments>
=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</id>
=back
=head1 RELATIONS
=head2 credit
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contract_credits>
=head2 payment
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::payments>
=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;

@ -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<customer_registers>
=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</id>
=back
=head1 RELATIONS
=head2 customer
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::customers>
=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;

@ -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<customers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<reseller_id>
=over 4
=item * L</reseller_id>
=item * L</shopuser>
=back
=head1 RELATIONS
=head2 comm_contact
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contacts>
=head2 contact
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contacts>
=head2 contracts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 customer_registers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::customer_registers>
=head2 orders
Type: has_many
Related object: L<NGCP::Schema::billing::Result::orders>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=head2 tech_contact
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contacts>
=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;

@ -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<domain_resellers>
=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</id>
=back
=head1 RELATIONS
=head2 domain
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::domains>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<domains>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<domain_idx>
=over 4
=item * L</domain>
=back
=head1 RELATIONS
=head2 domain_resellers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::domain_resellers>
=head2 voip_subscribers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=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;

@ -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<invoices>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<yms_idx>
=over 4
=item * L</year>
=item * L</month>
=item * L</serial>
=back
=head1 RELATIONS
=head2 contract_balances
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contract_balances>
=head2 orders
Type: has_many
Related object: L<NGCP::Schema::billing::Result::orders>
=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;

@ -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<lnp_numbers>
=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</id>
=back
=head1 RELATIONS
=head2 lnp_provider
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::lnp_providers>
=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;

@ -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<lnp_providers>
=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</id>
=back
=head1 RELATIONS
=head2 lnp_numbers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::lnp_numbers>
=head2 ncos_lnp_lists
Type: has_many
Related object: L<NGCP::Schema::billing::Result::ncos_lnp_list>
=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;

@ -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<ncos_levels>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<reslev_idx>
=over 4
=item * L</reseller_id>
=item * L</level>
=back
=head1 RELATIONS
=head2 ncos_lnp_lists
Type: has_many
Related object: L<NGCP::Schema::billing::Result::ncos_lnp_list>
=head2 ncos_pattern_lists
Type: has_many
Related object: L<NGCP::Schema::billing::Result::ncos_pattern_list>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<ncos_lnp_list>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<levpro_idx>
=over 4
=item * L</ncos_level_id>
=item * L</lnp_provider_id>
=back
=head1 RELATIONS
=head2 lnp_provider
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::lnp_providers>
=head2 ncos_level
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::ncos_levels>
=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;

@ -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<ncos_pattern_list>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<levpat_idx>
=over 4
=item * L</ncos_level_id>
=item * L</pattern>
=back
=head1 RELATIONS
=head2 ncos_level
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::ncos_levels>
=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;

@ -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<order_payments>
=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</id>
=back
=head1 RELATIONS
=head2 order
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::orders>
=head2 payment
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::payments>
=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;

@ -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<orders>
=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</id>
=back
=head1 RELATIONS
=head2 contracts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 customer
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 delivery_contact
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contacts>
=head2 invoice
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::invoices>
=head2 order_payments
Type: has_many
Related object: L<NGCP::Schema::billing::Result::order_payments>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<payments>
=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</id>
=back
=head1 RELATIONS
=head2 credit_payments
Type: has_many
Related object: L<NGCP::Schema::billing::Result::credit_payments>
=head2 order_payments
Type: has_many
Related object: L<NGCP::Schema::billing::Result::order_payments>
=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;

@ -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<products>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<reshand_idx>
=over 4
=item * L</reseller_id>
=item * L</handle>
=back
=head2 C<resnam_idx>
=over 4
=item * L</reseller_id>
=item * L</name>
=back
=head1 RELATIONS
=head2 billing_mappings
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_mappings>
=head2 billing_profile
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<resellers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<contractid_idx>
=over 4
=item * L</contract_id>
=back
=head2 C<name_idx>
=over 4
=item * L</name>
=back
=head1 RELATIONS
=head2 admins
Type: has_many
Related object: L<NGCP::Schema::billing::Result::admins>
=head2 billing_profiles
Type: has_many
Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 contracts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 customers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::customers>
=head2 domain_resellers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::domain_resellers>
=head2 ncos_levels
Type: has_many
Related object: L<NGCP::Schema::billing::Result::ncos_levels>
=head2 orders
Type: has_many
Related object: L<NGCP::Schema::billing::Result::orders>
=head2 products
Type: has_many
Related object: L<NGCP::Schema::billing::Result::products>
=head2 voip_intercepts
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_intercept>
=head2 voip_number_block_resellers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_number_block_resellers>
=head2 voip_numbers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_numbers>
=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;

@ -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<voip_intercept>
=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</id>
=back
=head1 RELATIONS
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<voip_number_block_resellers>
=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</id>
=back
=head1 RELATIONS
=head2 number_block
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::voip_number_blocks>
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=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;

@ -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<voip_number_blocks>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<prefix_idx>
=over 4
=item * L</cc>
=item * L</ac>
=item * L</sn_prefix>
=back
=head1 RELATIONS
=head2 voip_number_block_resellers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_number_block_resellers>
=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;

@ -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<voip_numbers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<number_idx>
=over 4
=item * L</cc>
=item * L</ac>
=item * L</sn>
=back
=head1 RELATIONS
=head2 reseller
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::resellers>
=head2 subscriber
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=head2 voip_subscribers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=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;

@ -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<voip_subscribers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<uuid_idx>
=over 4
=item * L</uuid>
=back
=head1 RELATIONS
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::contracts>
=head2 domain
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::domains>
=head2 primary_number
Type: belongs_to
Related object: L<NGCP::Schema::billing::Result::voip_numbers>
=head2 voip_numbers
Type: has_many
Related object: L<NGCP::Schema::billing::Result::voip_numbers>
=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;

@ -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;

@ -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<contracts>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<externalid_idx>
=over 4
=item * L</external_id>
=back
=head1 RELATIONS
=head2 credits
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::credits>
=head2 customer
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::customers>
=head2 subscribers
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::subscribers>
=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;

@ -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<credits>
=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</id>
=back
=head1 RELATIONS
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::contracts>
=head2 payments
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::payments>
=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;

@ -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<customers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<externalid_idx>
=over 4
=item * L</external_id>
=back
=head2 C<shopuser_idx>
=over 4
=item * L</shopuser>
=back
=head1 RELATIONS
=head2 contracts
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::contracts>
=head2 orders
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::orders>
=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;

@ -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<interceptions>
=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</id>
=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;

@ -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<numbers>
=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</number>
=back
=head1 RELATIONS
=head2 subscriber
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::subscribers>
=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;

@ -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<orders>
=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</id>
=back
=head1 RELATIONS
=head2 customer
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::customers>
=head2 payments
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::payments>
=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;

@ -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<payments>
=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</id>
=back
=head1 RELATIONS
=head2 credit
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::credits>
=head2 order
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::orders>
=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;

@ -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<subscribers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<domwebuser_idx>
=over 4
=item * L</domain>
=item * L</webusername>
=back
=head2 C<externalid_idx>
=over 4
=item * L</external_id>
=back
=head2 C<usrdom_idx>
=over 4
=item * L</username>
=item * L</domain>
=back
=head1 RELATIONS
=head2 contract
Type: belongs_to
Related object: L<NGCP::Schema::carrier::Result::contracts>
=head2 numbers
Type: has_many
Related object: L<NGCP::Schema::carrier::Result::numbers>
=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;

@ -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;

@ -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<acc>
=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</id>
=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;

@ -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<acc_backup>
=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</id>
=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;

@ -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<acc_trash>
=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</id>
=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;

@ -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<active_watchers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<active_watchers_idx>
=over 4
=item * L</callid>
=item * L</to_tag>
=item * L</from_tag>
=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;

@ -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<address>
=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</id>
=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;

@ -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<aliases>
=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</id>
=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;

@ -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<dbaliases>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<alias_idx>
=over 4
=item * L</alias_username>
=item * L</alias_domain>
=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;

@ -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<dialog>
=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</id>
=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;

@ -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<dialog_vars>
=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</id>
=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;

@ -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<dialplan>
=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</id>
=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;

@ -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<dispatcher>
=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</id>
=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;

@ -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<dom_preferences>
=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</id>
=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;

@ -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<domain>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<domain_idx>
=over 4
=item * L</domain>
=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;

@ -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<domain_attrs>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<domain_attrs_idx>
=over 4
=item * L</did>
=item * L</name>
=item * L</value>
=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;

@ -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<fax_destinations>
=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</id>
=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;

@ -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<fax_journal>
=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</id>
=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;

@ -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<fax_preferences>
=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</subscriber_id>
=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;

@ -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<htable>
=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</id>
=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;

@ -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<lcr_gw>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<lcr_id_gw_name_idx>
=over 4
=item * L</lcr_id>
=item * L</gw_name>
=back
=head2 C<lcr_id_ip_addr_idx>
=over 4
=item * L</lcr_id>
=item * L</ip_addr>
=back
=head1 RELATIONS
=head2 lcr_rule_targets
Type: has_many
Related object: L<NGCP::Schema::kamailio::Result::lcr_rule_target>
=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;

@ -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<lcr_rule>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<lcr_id_prefix_from_uri_idx>
=over 4
=item * L</lcr_id>
=item * L</prefix>
=item * L</from_uri>
=item * L</request_uri>
=item * L</group_id>
=back
=head1 RELATIONS
=head2 lcr_rule_targets
Type: has_many
Related object: L<NGCP::Schema::kamailio::Result::lcr_rule_target>
=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;

@ -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<lcr_rule_target>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<rule_id_gw_id_idx>
=over 4
=item * L</rule_id>
=item * L</gw_id>
=back
=head1 RELATIONS
=head2 gw
Type: belongs_to
Related object: L<NGCP::Schema::kamailio::Result::lcr_gw>
=head2 rule
Type: belongs_to
Related object: L<NGCP::Schema::kamailio::Result::lcr_rule>
=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;

@ -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<location>
=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</id>
=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;

@ -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<mobile_push_registrations>
=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</reg_id>
=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;

@ -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<peer_preferences>
=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</id>
=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;

@ -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<presentity>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<presentity_idx>
=over 4
=item * L</username>
=item * L</domain>
=item * L</event>
=item * L</etag>
=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;

@ -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<pua>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<pua_idx>
=over 4
=item * L</etag>
=item * L</tuple_id>
=item * L</call_id>
=item * L</from_tag>
=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;

@ -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<rls_presentity>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<rls_presentity_idx>
=over 4
=item * L</rlsubs_did>
=item * L</resource_uri>
=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;

@ -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<rls_watchers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<rls_watcher_idx>
=over 4
=item * L</callid>
=item * L</to_tag>
=item * L</from_tag>
=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;

@ -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<sems_registrations>
=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</subscriber_id>
=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;

@ -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<silo>
=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</id>
=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;

@ -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<speed_dial>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<speed_dial_idx>
=over 4
=item * L</username>
=item * L</domain>
=item * L</sd_domain>
=item * L</sd_username>
=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;

@ -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<subscriber>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<account_idx>
=over 4
=item * L</username>
=item * L</domain>
=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;

@ -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<trusted>
=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</id>
=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;

@ -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<usr_preferences>
=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</id>
=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;

@ -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<version>
=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;

@ -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<voicemail_spool>
=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</id>
=back
=head1 RELATIONS
=head2 mailboxuser
Type: belongs_to
Related object: L<NGCP::Schema::kamailio::Result::voicemail_users>
=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;

@ -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<voicemail_users>
=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</uniqueid>
=back
=head1 RELATIONS
=head2 voicemail_spools
Type: has_many
Related object: L<NGCP::Schema::kamailio::Result::voicemail_spool>
=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;

@ -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<watchers>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<watcher_idx>
=over 4
=item * L</presentity_uri>
=item * L</watcher_username>
=item * L</watcher_domain>
=item * L</event>
=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;

@ -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<xcap>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<doc_uri_idx>
=over 4
=item * L</doc_uri>
=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;

@ -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;

@ -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<cfg_schema>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<rev_idx>
=over 4
=item * L</revision>
=item * L</node>
=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;

@ -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<db_schema>
=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</id>
=back
=head1 UNIQUE CONSTRAINTS
=head2 C<rev_idx>
=over 4
=item * L</revision>
=item * L</node>
=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;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save