Revert "MT#4225 remove nugatory modules to save memory"

This reverts commit 7325ac66cf.

Conflicts:
	lib/NGCP/Schema/Result/provisioning_voip_subscribers.pm
3.1
Andreas Granig 12 years ago
parent 75b9b92daa
commit 2cd76e7b89

@ -1,13 +1,23 @@
package NGCP::Schema::Result::acc;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::acc
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qFObA0okTMjXtkRwrOqUpw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc_backup");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::acc_backup
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eE2nUDj5epmYmSJsJm8TSQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc_trash");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::acc_trash
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:557rTw193beyGGnLcAdVBw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::active_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.active_watchers");
__PACKAGE__->add_columns(
"id",
{
@ -71,20 +81,17 @@ __PACKAGE__->add_columns(
{ data_type => "integer", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("active_watchers_idx", ["callid", "to_tag", "from_tag"]);
__PACKAGE__->add_unique_constraint("active_watchers_idx", ["callid", "to_tag", "from_tag"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -272,3 +279,14 @@ NGCP::Schema::Result::active_watchers
=item * L</from_tag>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qR39S248hh/N3RPJhm19YQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::address;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.address");
__PACKAGE__->add_columns(
"id",
{
@ -38,18 +48,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -116,3 +122,14 @@ NGCP::Schema::Result::address
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TYow4rXbP/U+xZXeww4i/Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::admins;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON", "EncodedColumn");
__PACKAGE__->table("billing.admins");
__PACKAGE__->add_columns(
"id",
{
@ -51,8 +61,10 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("login_idx", ["login"]);
@ -67,17 +79,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -191,3 +198,14 @@ NGCP::Schema::Result::admins
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HtK2drQTRWUtkxH5uEqh9g
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::aliases;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.aliases");
__PACKAGE__->add_columns(
"id",
{
@ -74,20 +84,17 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("ruid_idx", ["ruid"]);
__PACKAGE__->add_unique_constraint("ruid_idx", ["ruid"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -247,3 +254,14 @@ NGCP::Schema::Result::aliases
=item * L</ruid>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZiycXJUkxrz/omgPSZc9Sw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::autoprov_configs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_configs");
__PACKAGE__->add_columns(
"id",
{
@ -31,8 +41,10 @@ __PACKAGE__->add_columns(
{ data_type => "mediumtext", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -47,16 +59,13 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -117,3 +126,14 @@ NGCP::Schema::provisioning::Result::autoprov_configs
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::autoprov_devices>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-09 18:26:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rr7y7bh33fX3UgE8IXLl5w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::autoprov_device_line_ranges;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_device_line_ranges");
__PACKAGE__->add_columns(
"id",
{
@ -55,8 +65,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -77,10 +89,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -164,3 +172,14 @@ NGCP::Schema::provisioning::Result::autoprov_device_line_ranges
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::autoprov_devices>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-10-01 15:26:08
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bQQCuGxq7fEn1i/jkPZFxQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::autoprov_devices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_devices");
__PACKAGE__->add_columns(
"id",
{
@ -80,17 +90,12 @@ __PACKAGE__->has_many(
);
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -143,3 +148,14 @@ NGCP::Schema::provisioning::Result::autoprov_devices
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-09 12:29:48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fFY/6TuWLmvWIb9jDVyYFA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::autoprov_field_device_lines;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_field_device_lines");
__PACKAGE__->add_columns(
"id",
{
@ -50,8 +60,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_field_devices",
@ -59,12 +71,14 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"provisioning_voip_subscriber",
"NGCP::Schema::Result::provisioning_voip_subscribers",
{ id => "subscriber_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"autoprov_device_line_range",
"NGCP::Schema::Result::autoprov_device_line_ranges",
@ -78,10 +92,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -156,3 +166,14 @@ Related object: L<NGCP::Schema::provisioning::Result::autoprov_field_devices>
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-10-04 11:19:30
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uKpCn7D/6aeJAwDWT7k3yw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,14 +1,23 @@
package NGCP::Schema::Result::autoprov_field_devices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_field_devices");
__PACKAGE__->add_columns(
"id",
{
@ -40,9 +49,11 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("uk_identifier_idx", ["identifier"]);
__PACKAGE__->belongs_to(
"profile",
"NGCP::Schema::Result::autoprov_profiles",
@ -50,6 +61,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -70,10 +82,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -142,3 +150,14 @@ Related object: L<NGCP::Schema::provisioning::Result::autoprov_profiles>
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-13 15:15:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nPg7ocQR/hxOrPWVhmsyQA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,14 +1,23 @@
package NGCP::Schema::Result::autoprov_firmwares;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_firmwares");
__PACKAGE__->add_columns(
"id",
{
@ -32,8 +41,10 @@ __PACKAGE__->add_columns(
{ data_type => "longblob", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -54,10 +65,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -112,3 +119,14 @@ NGCP::Schema::provisioning::Result::autoprov_firmwares
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::autoprov_devices>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-09 16:43:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HXEGelcjENvGXpVeIfpWOw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,14 +1,23 @@
package NGCP::Schema::Result::autoprov_profiles;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_profiles");
__PACKAGE__->add_columns(
"id",
{
@ -35,8 +44,10 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"config",
"NGCP::Schema::Result::autoprov_configs",
@ -44,6 +55,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"firmware",
"NGCP::Schema::Result::autoprov_firmwares",
@ -55,17 +67,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -134,3 +141,14 @@ Related object: L<NGCP::Schema::provisioning::Result::autoprov_configs>
Type: belongs_to
Related object: L<NGCP::Schema::provisioning::Result::autoprov_firmwares>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-09-09 22:49:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c7ukjLDxp+bOS99nHMBm6A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_fees;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_fees");
__PACKAGE__->add_columns(
"id",
{
@ -88,8 +98,10 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"billing_fees_histories",
"NGCP::Schema::Result::billing_fees_history",
@ -97,6 +109,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -104,6 +117,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"billing_zone",
"NGCP::Schema::Result::billing_zones",
@ -115,17 +129,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -279,3 +288,14 @@ Related object: L<NGCP::Schema::Result::billing_profiles>
Type: belongs_to
Related object: L<NGCP::Schema::Result::billing_zones>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:arm3oIYMKgMXvCZPEQXC8A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_fees_history;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_fees_history");
__PACKAGE__->add_columns(
"id",
{
@ -90,8 +100,10 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"bf",
"NGCP::Schema::Result::billing_fees",
@ -104,6 +116,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"billing_zones_history",
"NGCP::Schema::Result::billing_zones_history",
@ -115,17 +128,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -279,3 +287,14 @@ Related object: L<NGCP::Schema::Result::billing_fees>
Type: belongs_to
Related object: L<NGCP::Schema::Result::billing_zones_history>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fWccRpyDJ1pXfVc9EBHWAw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_mappings;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_mappings");
__PACKAGE__->add_columns(
"id",
{
@ -51,8 +61,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -65,6 +77,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -72,6 +85,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"product",
"NGCP::Schema::Result::products",
@ -83,17 +97,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -181,3 +190,14 @@ Related object: L<NGCP::Schema::Result::contracts>
Type: belongs_to
Related object: L<NGCP::Schema::Result::products>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S6XFjNZ0ZH7q5/z57dvClw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_peaktime_special;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_peaktime_special");
__PACKAGE__->add_columns(
"id",
{
@ -37,25 +47,22 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
{ id => "billing_profile_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -117,3 +124,14 @@ NGCP::Schema::Result::billing_peaktime_special
Type: belongs_to
Related object: L<NGCP::Schema::Result::billing_profiles>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Oo6GvhSNBXvZ5yD6HecDfg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_peaktime_weekdays;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_peaktime_weekdays");
__PACKAGE__->add_columns(
"id",
{
@ -31,25 +41,22 @@ __PACKAGE__->add_columns(
{ data_type => "time", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
{ id => "billing_profile_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -115,3 +122,14 @@ NGCP::Schema::Result::billing_peaktime_weekdays
Type: belongs_to
Related object: L<NGCP::Schema::Result::billing_profiles>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y+10K8lQ4NIWypayYoR3Mg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_profiles;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_profiles");
__PACKAGE__->add_columns(
"id",
{
@ -69,12 +79,16 @@ __PACKAGE__->add_columns(
{ 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::Result::billing_fees",
@ -82,6 +96,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_mappings",
"NGCP::Schema::Result::billing_mappings",
@ -89,6 +104,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_peaktime_specials",
"NGCP::Schema::Result::billing_peaktime_special",
@ -96,6 +112,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_peaktime_weekdays",
"NGCP::Schema::Result::billing_peaktime_weekdays",
@ -103,6 +120,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_zones",
"NGCP::Schema::Result::billing_zones",
@ -110,6 +128,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"products",
"NGCP::Schema::Result::products",
@ -117,6 +136,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -128,17 +148,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -350,3 +365,14 @@ Related object: L<NGCP::Schema::Result::products>
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kBsfgQ+Fwqg/LmClPFeS8Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_zones;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_zones");
__PACKAGE__->add_columns(
"id",
{
@ -29,10 +39,13 @@ __PACKAGE__->add_columns(
{ 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::Result::billing_fees",
@ -40,6 +53,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -47,23 +61,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"billing_zones_histories",
"NGCP::Schema::Result::billing_zones_history",
{ "foreign.bz_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -151,3 +161,14 @@ Related object: L<NGCP::Schema::Result::billing_profiles>
Type: has_many
Related object: L<NGCP::Schema::Result::billing_zones_history>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wUp76Orr9EWY2LhRQtOeTw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::billing_zones_history;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_zones_history");
__PACKAGE__->add_columns(
"id",
{
@ -31,8 +41,10 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 127 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"billing_fees_histories",
"NGCP::Schema::Result::billing_fees_history",
@ -40,6 +52,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"bz",
"NGCP::Schema::Result::billing_zones",
@ -51,17 +64,12 @@ __PACKAGE__->belongs_to(
on_update => "NO ACTION",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -135,3 +143,14 @@ Related object: L<NGCP::Schema::Result::billing_fees_history>
Type: belongs_to
Related object: L<NGCP::Schema::Result::billing_zones>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kmF6BvjNbumSCnH9+xKVpA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::carrier_contracts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.contracts");
__PACKAGE__->add_columns(
"id",
{
@ -31,10 +41,13 @@ __PACKAGE__->add_columns(
{ 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::Result::credits",
@ -42,6 +55,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::carrier_customers",
@ -54,23 +68,19 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"subscribers",
"NGCP::Schema::Result::subscribers",
{ "foreign.contract_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -160,3 +170,14 @@ Related object: L<NGCP::Schema::Result::carrier_customers>
Type: has_many
Related object: L<NGCP::Schema::Result::subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MWXcuL3FRPTIc4QJ5Rwkbg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::carrier_customers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.customers");
__PACKAGE__->add_columns(
"id",
{
@ -24,12 +34,16 @@ __PACKAGE__->add_columns(
{ 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(
"carrier_contracts",
"NGCP::Schema::Result::carrier_contracts",
@ -37,23 +51,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"carrier_orders",
"NGCP::Schema::Result::carrier_orders",
{ "foreign.customer_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -138,3 +148,14 @@ Related object: L<NGCP::Schema::Result::carrier_contracts>
Type: has_many
Related object: L<NGCP::Schema::Result::carrier_orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XX9ztRJXpw3s7t3FbfgnpA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::carrier_orders;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.orders");
__PACKAGE__->add_columns(
"id",
{
@ -25,8 +35,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::carrier_customers",
@ -34,23 +46,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"carrier_payments",
"NGCP::Schema::Result::carrier_payments",
{ "foreign.order_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -106,3 +114,14 @@ Related object: L<NGCP::Schema::Result::carrier_customers>
Type: has_many
Related object: L<NGCP::Schema::Result::carrier_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RZd8/hVfRoeVg+ipiVTDCw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::carrier_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.payments");
__PACKAGE__->add_columns(
"id",
{
@ -32,8 +42,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"credit",
"NGCP::Schema::Result::credits",
@ -46,6 +58,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::carrier_orders",
@ -57,17 +70,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -130,3 +138,14 @@ Related object: L<NGCP::Schema::Result::credits>
Type: belongs_to
Related object: L<NGCP::Schema::Result::carrier_orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aHymcrxg+BF4S/T620WKfA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,17 +1,27 @@
package NGCP::Schema::Result::cdr;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components(
"InflateColumn::DateTime",
"Helper::Row::ToJSON",
"+NGCP::Schema::InflateColumn::DateTime::EpochMilli",
);
__PACKAGE__->table("accounting.cdr");
__PACKAGE__->add_columns(
"id",
{
@ -198,27 +208,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
for my $col (qw/init_time start_time/) {
if(__PACKAGE__->has_column($col)) {
__PACKAGE__->remove_column($col);
__PACKAGE__->add_column($col =>
{ data_type => "decimal", is_nullable => 0, size => [13, 3], inflate_datetime => 'epoch_milli' }
);
}
}
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -635,3 +632,20 @@ NGCP::Schema::Result::cdr
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rNMfsyIh9LAGJGoe/or06w
for my $col (qw/init_time start_time/) {
if(__PACKAGE__->has_column($col)) {
__PACKAGE__->remove_column($col);
__PACKAGE__->add_column($col =>
{ data_type => "decimal", is_nullable => 0, size => [13, 3], inflate_datetime => 'epoch_milli' }
);
}
}
__PACKAGE__->meta->make_immutable;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::cfg_schema;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ngcp.cfg_schema");
__PACKAGE__->add_columns(
"id",
{
@ -29,20 +39,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]);
__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -108,3 +115,14 @@ NGCP::Schema::Result::cfg_schema
=item * L</node>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uB2uQwZD0O5Kr7feLw5ekA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contacts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contacts");
__PACKAGE__->add_columns(
"id",
{
@ -71,8 +81,10 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 31 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -85,6 +97,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -92,6 +105,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_comm_contacts",
"NGCP::Schema::Result::customers",
@ -99,6 +113,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_contacts",
"NGCP::Schema::Result::customers",
@ -106,6 +121,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_tech_contacts",
"NGCP::Schema::Result::customers",
@ -113,23 +129,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
{ "foreign.delivery_contact_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -300,3 +312,14 @@ Related object: L<NGCP::Schema::Result::customers>
Type: has_many
Related object: L<NGCP::Schema::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f9lGIGrPbefm2oIODZMn0A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contract_balances;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_balances");
__PACKAGE__->add_columns(
"id",
{
@ -52,8 +62,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -61,6 +73,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"contract_credits",
"NGCP::Schema::Result::contract_credits",
@ -68,6 +81,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"invoice",
"NGCP::Schema::Result::invoices",
@ -79,17 +93,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -192,3 +201,14 @@ Related object: L<NGCP::Schema::Result::contract_credits>
Type: belongs_to
Related object: L<NGCP::Schema::Result::invoices>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sRLFO3vmh0A+E+mYtc/qHg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contract_credits;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_credits");
__PACKAGE__->add_columns(
"id",
{
@ -50,8 +60,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"balance",
"NGCP::Schema::Result::contract_balances",
@ -59,23 +71,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"credit_payments",
"NGCP::Schema::Result::credit_payments",
{ "foreign.credit_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -162,3 +170,14 @@ Related object: L<NGCP::Schema::Result::contract_balances>
Type: has_many
Related object: L<NGCP::Schema::Result::credit_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SoTTHXgpLT25E1NeCDK8ig
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contract_fraud_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_fraud_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -37,27 +47,25 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("contract_id", ["contract_id"]);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
{ id => "contract_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -153,3 +161,14 @@ NGCP::Schema::Result::contract_fraud_preferences
Type: belongs_to
Related object: L<NGCP::Schema::Result::contracts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vsOWtz3OM7MMgIMAoruagg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contract_registers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_registers");
__PACKAGE__->add_columns(
"id",
{
@ -31,25 +41,22 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
{ id => "contract_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -116,3 +123,14 @@ NGCP::Schema::Result::contract_registers
Type: belongs_to
Related object: L<NGCP::Schema::Result::contracts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i2tdRhLpGpYLPFvU0S5sXQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::contracts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contracts");
__PACKAGE__->add_columns(
"id",
{
@ -74,8 +84,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"billing_mappings",
"NGCP::Schema::Result::billing_mappings",
@ -83,6 +95,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"contact",
"NGCP::Schema::Result::contacts",
@ -95,6 +108,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contract_balances",
"NGCP::Schema::Result::contract_balances",
@ -102,6 +116,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"contract_fraud_preference",
"NGCP::Schema::Result::contract_fraud_preferences",
@ -109,6 +124,7 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"contract_registers",
"NGCP::Schema::Result::contract_registers",
@ -116,6 +132,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::customers",
@ -128,6 +145,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::orders",
@ -140,6 +158,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"voip_subscribers",
"NGCP::Schema::Result::voip_subscribers",
@ -174,10 +193,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -340,3 +355,14 @@ Related object: L<NGCP::Schema::Result::voip_subscribers>
Type: has_many
Related object: L<NGCP::Schema::Result::voip_pbx_groups>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M9sf5Sy/nN3bhIaFEtlOWw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::credit_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.credit_payments");
__PACKAGE__->add_columns(
"id",
{
@ -32,8 +42,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"credit",
"NGCP::Schema::Result::contract_credits",
@ -41,23 +53,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"payment",
"NGCP::Schema::Result::payments",
{ id => "payment_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -120,3 +128,14 @@ Related object: L<NGCP::Schema::Result::contract_credits>
Type: belongs_to
Related object: L<NGCP::Schema::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b5mY2DCe5CjVuUfRMvqtRA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::credits;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.credits");
__PACKAGE__->add_columns(
"id",
{
@ -25,8 +35,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::carrier_contracts",
@ -34,23 +46,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"carrier_payments",
"NGCP::Schema::Result::carrier_payments",
{ "foreign.credit_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -106,3 +114,14 @@ Related object: L<NGCP::Schema::Result::carrier_contracts>
Type: has_many
Related object: L<NGCP::Schema::Result::carrier_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cq7rxYrgz/j3rG9nKKNa+A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::customer_registers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.customer_registers");
__PACKAGE__->add_columns(
"id",
{
@ -31,25 +41,22 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::customers",
{ id => "customer_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -116,3 +123,14 @@ NGCP::Schema::Result::customer_registers
Type: belongs_to
Related object: L<NGCP::Schema::Result::customers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kGa4KTxeF8y+KuDSuHjiwg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::customers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.customers");
__PACKAGE__->add_columns(
"id",
{
@ -68,10 +78,13 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("reseller_id", ["reseller_id", "shopuser"]);
__PACKAGE__->belongs_to(
"comm_contact",
"NGCP::Schema::Result::contacts",
@ -84,6 +97,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"contact",
"NGCP::Schema::Result::contacts",
@ -96,6 +110,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -103,6 +118,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customer_registers",
"NGCP::Schema::Result::customer_registers",
@ -110,6 +126,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
@ -117,6 +134,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -129,6 +147,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"tech_contact",
"NGCP::Schema::Result::contacts",
@ -140,17 +159,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -307,3 +321,14 @@ Related object: L<NGCP::Schema::Result::resellers>
Type: belongs_to
Related object: L<NGCP::Schema::Result::contacts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y7YqlD6rqhL6T+l5QFCKzA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::db_schema;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ngcp.db_schema");
__PACKAGE__->add_columns(
"id",
{
@ -29,20 +39,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]);
__PACKAGE__->add_unique_constraint("rev_idx", ["revision", "node"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -108,3 +115,14 @@ NGCP::Schema::Result::db_schema
=item * L</node>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G75ihqiXlRQoyJK57K/FfA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dbaliases;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dbaliases");
__PACKAGE__->add_columns(
"id",
{
@ -26,20 +36,17 @@ __PACKAGE__->add_columns(
{ 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"]);
__PACKAGE__->add_unique_constraint("alias_idx", ["alias_username", "alias_domain"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -114,3 +121,14 @@ NGCP::Schema::Result::dbaliases
=item * L</alias_domain>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5S1hFbo4/Dpv6+ytWwhOxg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dialog;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialog");
__PACKAGE__->add_columns(
"id",
{
@ -79,18 +89,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 512 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -266,3 +272,14 @@ NGCP::Schema::Result::dialog
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum://TB31SImEvxJ2xdwlclYg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dialog_vars;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialog_vars");
__PACKAGE__->add_columns(
"id",
{
@ -26,18 +36,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 512 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -96,3 +102,14 @@ NGCP::Schema::Result::dialog_vars
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BX3ztSsppPyuHUF2WlkEfQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dialplan;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialplan");
__PACKAGE__->add_columns(
"id",
{
@ -34,18 +44,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 32 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -124,3 +130,14 @@ NGCP::Schema::Result::dialplan
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0zWWAUqsTsvOvZ6V/RwXEA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dispatcher;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dispatcher");
__PACKAGE__->add_columns(
"id",
{
@ -30,18 +40,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -115,3 +121,14 @@ NGCP::Schema::Result::dispatcher
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5jzrLkll7DO38SycdSaTXQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::dom_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dom_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -37,18 +47,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -130,3 +136,14 @@ NGCP::Schema::Result::dom_preferences
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OlDocoyhD05x+pad1EtlbA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::domain;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.domain");
__PACKAGE__->add_columns(
"id",
{
@ -29,20 +39,17 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]);
__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -106,3 +113,14 @@ NGCP::Schema::Result::domain
=item * L</domain>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RT3m/mCu0f8cNAITLtDaJg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.domain_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -33,20 +43,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("domain_attrs_idx", ["did", "name", "value"]);
__PACKAGE__->add_unique_constraint("domain_attrs_idx", ["did", "name", "value"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -126,3 +133,14 @@ NGCP::Schema::Result::domain_attrs
=item * L</value>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pAZuyhtxIitvW8RtbIxPJA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::domain_resellers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.domain_resellers");
__PACKAGE__->add_columns(
"id",
{
@ -32,8 +42,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"domain",
"NGCP::Schema::Result::domains",
@ -41,23 +53,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
{ id => "reseller_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -120,3 +128,14 @@ Related object: L<NGCP::Schema::Result::domains>
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c/brst43n5Q/K2Uxl4+69w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::domains;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.domains");
__PACKAGE__->add_columns(
"id",
{
@ -20,10 +30,13 @@ __PACKAGE__->add_columns(
{ 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::Result::domain_resellers",
@ -31,23 +44,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_subscribers",
"NGCP::Schema::Result::voip_subscribers",
{ "foreign.domain_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -112,3 +121,14 @@ Related object: L<NGCP::Schema::Result::domain_resellers>
Type: has_many
Related object: L<NGCP::Schema::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:408RZZEOBWuD1+SjUnYbHA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::fax_destinations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.fax_destinations");
__PACKAGE__->add_columns(
"id",
{
@ -57,18 +67,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -150,3 +156,14 @@ NGCP::Schema::Result::fax_destinations
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QadQu9QxzBRrdhCSsRraTg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::fax_journal;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.fax_journal");
__PACKAGE__->add_columns(
"id",
{
@ -72,18 +82,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -201,3 +207,14 @@ NGCP::Schema::Result::fax_journal
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TEf0WRwgQKpJvAFVrHG6SA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::fax_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.fax_preferences");
__PACKAGE__->add_columns(
"subscriber_id",
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
@ -45,18 +55,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("subscriber_id");
__PACKAGE__->set_primary_key("subscriber_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -130,3 +136,14 @@ NGCP::Schema::Result::fax_preferences
=item * L</subscriber_id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uAuDAVv+/jziv3khAD57Jg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::htable;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.htable");
__PACKAGE__->add_columns(
"id",
{
@ -28,18 +38,14 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -106,3 +112,14 @@ NGCP::Schema::Result::htable
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mBXHtm+jpq6H55FwzNEMFg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::interceptions;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.interceptions");
__PACKAGE__->add_columns(
"id",
{
@ -20,18 +30,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 31 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -72,3 +78,14 @@ NGCP::Schema::Result::interceptions
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hIPHw93VVP18hXKsKMflxw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::invoices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.invoices");
__PACKAGE__->add_columns(
"id",
{
@ -26,10 +36,13 @@ __PACKAGE__->add_columns(
{ 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::Result::contract_balances",
@ -37,23 +50,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
{ "foreign.invoice_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -139,3 +148,14 @@ Related object: L<NGCP::Schema::Result::contract_balances>
Type: has_many
Related object: L<NGCP::Schema::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hszT+4EqnW8rTicg2nvr6w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::kamailio_acc;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::kamailio_acc
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aNoNq/I64bo72Qh02K9WEg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::kamailio_acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc_backup");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::kamailio_acc_backup
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ytEmWh6kooVkBo656daUlg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::kamailio_acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc_trash");
__PACKAGE__->add_columns(
"id",
{
@ -59,18 +69,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -208,3 +214,14 @@ NGCP::Schema::Result::kamailio_acc_trash
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qaAjbljClGuz7EgyTx3A1Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::language_strings;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.language_strings");
__PACKAGE__->add_columns(
"id",
{
@ -24,20 +34,17 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("codelang_idx", ["code", "language"]);
__PACKAGE__->add_unique_constraint("codelang_idx", ["code", "language"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -101,3 +108,14 @@ NGCP::Schema::Result::language_strings
=item * L</language>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:09
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+MFxT4fyKRXsi0KEWgCIcA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::lcr_gw;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_gw");
__PACKAGE__->add_columns(
"id",
{
@ -51,29 +61,28 @@ __PACKAGE__->add_columns(
{ 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::Result::lcr_rule_target",
{ "foreign.gw_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -223,3 +232,14 @@ NGCP::Schema::Result::lcr_gw
Type: has_many
Related object: L<NGCP::Schema::Result::lcr_rule_target>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3xvIcw0YamScXUux+OxFog
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::lcr_rule;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_rule");
__PACKAGE__->add_columns(
"id",
{
@ -42,30 +52,28 @@ __PACKAGE__->add_columns(
{ 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::Result::lcr_rule_target",
{ "foreign.rule_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -171,3 +179,14 @@ NGCP::Schema::Result::lcr_rule
Type: has_many
Related object: L<NGCP::Schema::Result::lcr_rule_target>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VLDo6V10HsYZMqW1xv0mOg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::lcr_rule_target;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_rule_target");
__PACKAGE__->add_columns(
"id",
{
@ -43,10 +53,13 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("rule_id_gw_id_idx", ["rule_id", "gw_id"]);
__PACKAGE__->belongs_to(
"gw",
"NGCP::Schema::Result::lcr_gw",
@ -54,23 +67,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"rule",
"NGCP::Schema::Result::lcr_rule",
{ id => "rule_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -164,3 +173,14 @@ Related object: L<NGCP::Schema::Result::lcr_gw>
Type: belongs_to
Related object: L<NGCP::Schema::Result::lcr_rule>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CD/mdYijs1mw7UL9qRWh8w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::lnp_numbers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.lnp_numbers");
__PACKAGE__->add_columns(
"id",
{
@ -39,25 +49,22 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"lnp_provider",
"NGCP::Schema::Result::lnp_providers",
{ id => "lnp_provider_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -125,3 +132,14 @@ NGCP::Schema::Result::lnp_numbers
Type: belongs_to
Related object: L<NGCP::Schema::Result::lnp_providers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tGBeT84ulgbvuK+sAv4ZfA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::lnp_providers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.lnp_providers");
__PACKAGE__->add_columns(
"id",
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
@ -15,8 +25,10 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"lnp_numbers",
"NGCP::Schema::Result::lnp_numbers",
@ -24,23 +36,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"ncos_lnp_lists",
"NGCP::Schema::Result::ncos_lnp_list",
{ "foreign.lnp_provider_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -94,3 +102,14 @@ Related object: L<NGCP::Schema::Result::lnp_numbers>
Type: has_many
Related object: L<NGCP::Schema::Result::ncos_lnp_list>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RX3uJZqBdZ7o0gpZFV3vZQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::location;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.location");
__PACKAGE__->add_columns(
"id",
{
@ -74,20 +84,17 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("ruid_idx", ["ruid"]);
__PACKAGE__->add_unique_constraint("ruid_idx", ["ruid"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -247,3 +254,14 @@ NGCP::Schema::Result::location
=item * L</ruid>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1ApRNGpNTS22heMpd2MjLQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::location_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.location_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -37,18 +47,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -130,3 +136,14 @@ NGCP::Schema::Result::location_attrs
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tLkGn8xK97wMsEjERwMF6A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::mark;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.mark");
__PACKAGE__->add_columns(
"id",
{
@ -22,18 +32,14 @@ __PACKAGE__->add_columns(
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -80,3 +86,14 @@ NGCP::Schema::Result::mark
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ukv7v8i+NsHWpR11rgC4Ww
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::message_packets;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.message_packets");
__PACKAGE__->add_columns(
"message",
{ data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 },
@ -22,6 +32,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"message",
"NGCP::Schema::Result::messages",
@ -30,17 +41,12 @@ __PACKAGE__->belongs_to(
);
__PACKAGE__->set_primary_key("message", "packet");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -82,3 +88,14 @@ NGCP::Schema::Result::message_packets
=item * L</packet>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3CvBPiIZYVwwf8w/PskEcg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,17 +1,27 @@
package NGCP::Schema::Result::messages;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components(
"InflateColumn::DateTime",
"InflateColumn::DateTime",
"Helper::Row::ToJSON",
"+NGCP::Schema::InflateColumn::DateTime::EpochMicro",
);
__PACKAGE__->table("sipstats.messages");
__PACKAGE__->add_columns(
"id",
{
@ -73,26 +83,12 @@ __PACKAGE__->has_many(
);
__PACKAGE__->set_primary_key("id");
for my $col (qw/timestamp/) {
if(__PACKAGE__->has_column($col)) {
__PACKAGE__->remove_column($col);
__PACKAGE__->add_column($col =>
{ data_type => "decimal", is_nullable => 0, size => [17, 6], inflate_datetime => 'epoch_micro' }
);
}
}
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -217,3 +213,21 @@ NGCP::Schema::Result::messages
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bYbdYKBz9w7LgX1fXS2wzQ
for my $col (qw/timestamp/) {
if(__PACKAGE__->has_column($col)) {
__PACKAGE__->remove_column($col);
__PACKAGE__->add_column($col =>
{ data_type => "decimal", is_nullable => 0, size => [17, 6], inflate_datetime => 'epoch_micro' }
);
}
}
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::mobile_push_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.mobile_push_registrations");
__PACKAGE__->add_columns(
"reg_id",
{ data_type => "varbinary", is_nullable => 0, size => 255 },
@ -33,18 +43,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("reg_id");
__PACKAGE__->set_primary_key("reg_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -98,3 +104,14 @@ NGCP::Schema::Result::mobile_push_registrations
=item * L</reg_id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XY4ijL/JrJa4QXX0sOAhjA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::ncos_levels;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_levels");
__PACKAGE__->add_columns(
"id",
{
@ -38,10 +48,13 @@ __PACKAGE__->add_columns(
{ 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::Result::ncos_lnp_list",
@ -49,6 +62,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"ncos_pattern_lists",
"NGCP::Schema::Result::ncos_pattern_list",
@ -56,6 +70,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -67,17 +82,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -175,3 +185,14 @@ Related object: L<NGCP::Schema::Result::ncos_pattern_list>
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o/iMN7CPlUuTqhp514feZg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::ncos_lnp_list;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_lnp_list");
__PACKAGE__->add_columns(
"id",
{
@ -34,10 +44,13 @@ __PACKAGE__->add_columns(
{ 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::Result::lnp_providers",
@ -45,23 +58,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"ncos_level",
"NGCP::Schema::Result::ncos_levels",
{ id => "ncos_level_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -141,3 +150,14 @@ Related object: L<NGCP::Schema::Result::lnp_providers>
Type: belongs_to
Related object: L<NGCP::Schema::Result::ncos_levels>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tyFy2q6Pb4BVZlO51cYXrw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::ncos_pattern_list;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_pattern_list");
__PACKAGE__->add_columns(
"id",
{
@ -29,27 +39,25 @@ __PACKAGE__->add_columns(
{ 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::Result::ncos_levels",
{ id => "ncos_level_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -122,3 +130,14 @@ NGCP::Schema::Result::ncos_pattern_list
Type: belongs_to
Related object: L<NGCP::Schema::Result::ncos_levels>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l/bo1cbK1S2QD528GlpRTg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::numbers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.numbers");
__PACKAGE__->add_columns(
"number",
{ data_type => "varchar", is_nullable => 0, size => 42 },
@ -20,8 +30,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("number");
__PACKAGE__->belongs_to(
"subscriber",
"NGCP::Schema::Result::subscribers",
@ -33,17 +45,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -92,3 +99,14 @@ NGCP::Schema::Result::numbers
Type: belongs_to
Related object: L<NGCP::Schema::Result::subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ln3HIKttfpB2ZwCbMqOFfw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::order_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.order_payments");
__PACKAGE__->add_columns(
"id",
{
@ -32,8 +42,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::orders",
@ -41,23 +53,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"payment",
"NGCP::Schema::Result::payments",
{ id => "payment_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -120,3 +128,14 @@ Related object: L<NGCP::Schema::Result::orders>
Type: belongs_to
Related object: L<NGCP::Schema::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P6uf3+Wz3k5sIDeH2QPo7A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::orders;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.orders");
__PACKAGE__->add_columns(
"id",
{
@ -80,8 +90,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -89,6 +101,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::customers",
@ -101,6 +114,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"delivery_contact",
"NGCP::Schema::Result::contacts",
@ -113,6 +127,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"invoice",
"NGCP::Schema::Result::invoices",
@ -125,6 +140,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"order_payments",
"NGCP::Schema::Result::order_payments",
@ -132,6 +148,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -143,17 +160,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -298,3 +310,14 @@ Related object: L<NGCP::Schema::Result::order_payments>
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IRUPJVWT80Ma2hxsKnT9Tw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::packets;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.packets");
__PACKAGE__->add_columns(
"id",
{
@ -38,17 +48,12 @@ __PACKAGE__->has_many(
);
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -116,3 +121,14 @@ NGCP::Schema::Result::packets
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xyCGQ5SkZR7CCIQUdOkTlA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.payments");
__PACKAGE__->add_columns(
"id",
{
@ -52,8 +62,10 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"credit_payments",
"NGCP::Schema::Result::credit_payments",
@ -61,23 +73,19 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"order_payments",
"NGCP::Schema::Result::order_payments",
{ "foreign.payment_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -185,3 +193,14 @@ Related object: L<NGCP::Schema::Result::credit_payments>
Type: has_many
Related object: L<NGCP::Schema::Result::order_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zW9AaD/pkQ5yi4/lNeRq0A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::peer_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.peer_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -37,18 +47,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -130,3 +136,14 @@ NGCP::Schema::Result::peer_preferences
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mbF+UBu0qW3QDrSDiaa+Ww
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::prepaid_costs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.prepaid_costs");
__PACKAGE__->add_columns(
"id",
{
@ -31,18 +41,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -101,3 +107,14 @@ NGCP::Schema::Result::prepaid_costs
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iOK0ghqc1h66203Vxld/Xw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::presentity;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.presentity");
__PACKAGE__->add_columns(
"id",
{
@ -34,20 +44,17 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 128 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("presentity_idx", ["username", "domain", "event", "etag"]);
__PACKAGE__->add_unique_constraint("presentity_idx", ["username", "domain", "event", "etag"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -143,3 +150,14 @@ NGCP::Schema::Result::presentity
=item * L</etag>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wa/a4rhqsQwta6+sTruhvw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::products;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.products");
__PACKAGE__->add_columns(
"id",
{
@ -56,12 +66,16 @@ __PACKAGE__->add_columns(
},
);
__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::Result::billing_mappings",
@ -69,6 +83,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -81,6 +96,7 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -92,17 +108,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -228,3 +239,14 @@ Related object: L<NGCP::Schema::Result::billing_profiles>
Type: belongs_to
Related object: L<NGCP::Schema::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W5QBTDCAY3GR3SLhhuuwIw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::provisioning_voip_subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.voip_subscribers");
__PACKAGE__->add_columns(
"id",
{
@ -57,14 +67,19 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("user_dom_idx", ["username", "domain_id"]);
__PACKAGE__->add_unique_constraint("uuid_idx", ["uuid"]);
__PACKAGE__->add_unique_constraint("webuser_dom_idx", ["webusername", "domain_id"]);
__PACKAGE__->belongs_to(
"domain",
"NGCP::Schema::Result::voip_domains",
@ -79,6 +94,7 @@ __PACKAGE__->belongs_to(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cc_mappings",
"NGCP::Schema::Result::voip_cc_mappings",
@ -86,6 +102,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_destination_sets",
"NGCP::Schema::Result::voip_cf_destination_sets",
@ -93,6 +110,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_mappings",
"NGCP::Schema::Result::voip_cf_mappings",
@ -100,6 +118,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_time_sets",
"NGCP::Schema::Result::voip_cf_time_sets",
@ -107,6 +126,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_contacts",
"NGCP::Schema::Result::voip_contacts",
@ -114,6 +134,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_dbaliases",
"NGCP::Schema::Result::voip_dbaliases",
@ -121,6 +142,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_fax_destinations",
"NGCP::Schema::Result::voip_fax_destinations",
@ -128,6 +150,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"voip_fax_preference",
"NGCP::Schema::Result::voip_fax_preferences",
@ -135,6 +158,7 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"voip_reminder",
"NGCP::Schema::Result::voip_reminder",
@ -142,6 +166,7 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_speed_dials",
"NGCP::Schema::Result::voip_speed_dial",
@ -149,6 +174,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_trusted_sources",
"NGCP::Schema::Result::voip_trusted_sources",
@ -156,6 +182,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_usr_preferences",
"NGCP::Schema::Result::voip_usr_preferences",
@ -211,10 +238,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -440,3 +463,36 @@ Related object: L<NGCP::Schema::Result::voip_usr_preferences>
Type: belongs_to
Related object: L<NGCP::Schema::Result::voip_pbx_groups>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:09
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qpw0gD+LaI+g0k3EWr42tQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->has_one(
"voip_subscriber",
'NGCP::Schema::Result::voip_subscribers',
{ 'foreign.uuid' => 'self.uuid' },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
{ 'foreign.id' => 'self.account_id' },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_one(
"voicemail_user",
"NGCP::Schema::Result::voicemail_users",
{ "foreign.customer_id" => "self.uuid" },
{ cascade_copy => 1, cascade_delete => 1 },
);
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::pua;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.pua");
__PACKAGE__->add_columns(
"id",
{
@ -54,20 +64,17 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("pua_idx", ["etag", "tuple_id", "call_id", "from_tag"]);
__PACKAGE__->add_unique_constraint("pua_idx", ["etag", "tuple_id", "call_id", "from_tag"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -218,3 +225,14 @@ NGCP::Schema::Result::pua
=item * L</from_tag>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ygJUzcwYOslx7C8IYsJriQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::resellers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.resellers");
__PACKAGE__->add_columns(
"id",
{
@ -34,12 +44,16 @@ __PACKAGE__->add_columns(
},
);
__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::Result::admins",
@ -47,6 +61,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_profiles",
"NGCP::Schema::Result::billing_profiles",
@ -54,6 +69,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -61,6 +77,7 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"customers",
"NGCP::Schema::Result::customers",
@ -68,6 +85,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"domain_resellers",
"NGCP::Schema::Result::domain_resellers",
@ -75,6 +93,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"ncos_levels",
"NGCP::Schema::Result::ncos_levels",
@ -82,6 +101,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
@ -89,6 +109,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"products",
"NGCP::Schema::Result::products",
@ -96,6 +117,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_intercepts",
"NGCP::Schema::Result::voip_intercept",
@ -103,6 +125,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_number_block_resellers",
"NGCP::Schema::Result::voip_number_block_resellers",
@ -110,6 +133,7 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_numbers",
"NGCP::Schema::Result::voip_numbers",
@ -144,10 +168,6 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -288,3 +308,14 @@ Related object: L<NGCP::Schema::Result::voip_number_block_resellers>
Type: has_many
Related object: L<NGCP::Schema::Result::voip_numbers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jwPBSCFSUgONmOLVp+SO+w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::rls_presentity;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.rls_presentity");
__PACKAGE__->add_columns(
"id",
{
@ -34,20 +44,17 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("rls_presentity_idx", ["rlsubs_did", "resource_uri"]);
__PACKAGE__->add_unique_constraint("rls_presentity_idx", ["rlsubs_did", "resource_uri"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -138,3 +145,14 @@ NGCP::Schema::Result::rls_presentity
=item * L</resource_uri>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+oFx6xWrVArjVR9iOQCDbQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::rls_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.rls_watchers");
__PACKAGE__->add_columns(
"id",
{
@ -69,20 +79,17 @@ __PACKAGE__->add_columns(
{ data_type => "integer", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("rls_watcher_idx", ["callid", "to_tag", "from_tag"]);
__PACKAGE__->add_unique_constraint("rls_watcher_idx", ["callid", "to_tag", "from_tag"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -265,3 +272,14 @@ NGCP::Schema::Result::rls_watchers
=item * L</from_tag>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Hom3LtfcQnLjuPvKVQ6ig
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::sca_subscriptions;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.sca_subscriptions");
__PACKAGE__->add_columns(
"id",
{
@ -42,23 +52,20 @@ __PACKAGE__->add_columns(
{ data_type => "integer", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint(
"sca_subscriptions_idx",
["subscriber", "call_id", "from_tag", "to_tag"],
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -178,3 +185,14 @@ NGCP::Schema::Result::sca_subscriptions
=item * L</to_tag>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:psR3WnlgoB7BZkCzsi0gRw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::sems_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.sems_registrations");
__PACKAGE__->add_columns(
"subscriber_id",
{ data_type => "integer", is_nullable => 0 },
@ -33,18 +43,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 512 },
);
__PACKAGE__->set_primary_key("subscriber_id");
__PACKAGE__->set_primary_key("subscriber_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -112,3 +118,14 @@ NGCP::Schema::Result::sems_registrations
=item * L</subscriber_id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:keH+HF16e8LQPC4Up/54Tg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::silo;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.silo");
__PACKAGE__->add_columns(
"id",
{
@ -47,18 +57,14 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -169,3 +175,14 @@ NGCP::Schema::Result::silo
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1YSmqYtHyiP9lYfL0mAFHg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::sipstats_mark;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.mark");
__PACKAGE__->add_columns(
"name",
{ data_type => "varchar", is_nullable => 0, size => 255 },
@ -15,18 +25,14 @@ __PACKAGE__->add_columns(
{ data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("name");
__PACKAGE__->set_primary_key("name");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -66,3 +72,14 @@ NGCP::Schema::Result::sipstats_mark
=item * L</name>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q2fscRrY5Zv1w5Sf6kb3pg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::speed_dial;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.speed_dial");
__PACKAGE__->add_columns(
"id",
{
@ -34,23 +44,20 @@ __PACKAGE__->add_columns(
{ 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"],
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -157,3 +164,14 @@ NGCP::Schema::Result::speed_dial
=item * L</sd_username>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0YBaZnKaPLDpt7O+XXTFpA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::statistics;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.statistics");
__PACKAGE__->add_columns(
"id",
{
@ -223,18 +233,14 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id", "timestamp");
__PACKAGE__->set_primary_key("id", "timestamp");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -480,3 +486,14 @@ NGCP::Schema::Result::statistics
=item * L</timestamp>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:52:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9kpsF9dz/JLuknzhWElJDg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::subscriber;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.subscriber");
__PACKAGE__->add_columns(
"id",
{
@ -43,20 +53,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("account_idx", ["username", "domain"]);
__PACKAGE__->add_unique_constraint("account_idx", ["username", "domain"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -171,3 +178,14 @@ NGCP::Schema::Result::subscriber
=item * L</domain>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/nFKJCqgf6ODIPwyTEGAXw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.subscribers");
__PACKAGE__->add_columns(
"id",
{
@ -33,14 +43,19 @@ __PACKAGE__->add_columns(
},
);
__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::Result::carrier_contracts",
@ -48,23 +63,19 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"numbers",
"NGCP::Schema::Result::numbers",
{ "foreign.subscriber_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -174,3 +185,14 @@ Related object: L<NGCP::Schema::Result::carrier_contracts>
Type: has_many
Related object: L<NGCP::Schema::Result::numbers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E2EDHNYHXN0uk68QP4gzEg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::trusted;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.trusted");
__PACKAGE__->add_columns(
"id",
{
@ -26,18 +36,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -96,3 +102,14 @@ NGCP::Schema::Result::trusted
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6hCtfqG0t2Oua4AB9q4aXg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::uid_credentials;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_credentials");
__PACKAGE__->add_columns(
"id",
{
@ -39,18 +49,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -136,3 +142,14 @@ NGCP::Schema::Result::uid_credentials
=item * L</id>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oX0wkzWbvkXVl/cCbTcLxQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::uid_domain;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_domain");
__PACKAGE__->add_columns(
"id",
{
@ -29,20 +39,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]);
__PACKAGE__->add_unique_constraint("domain_idx", ["domain"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -106,3 +113,14 @@ NGCP::Schema::Result::uid_domain
=item * L</domain>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qPYbiX49LezlOTyWcSD1GA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::uid_domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_domain_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -33,20 +43,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("domain_attr_idx", ["did", "name", "value"]);
__PACKAGE__->add_unique_constraint("domain_attr_idx", ["did", "name", "value"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -126,3 +133,14 @@ NGCP::Schema::Result::uid_domain_attrs
=item * L</value>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uyB00nyfhtO/+x2vJs7m6w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

@ -1,13 +1,23 @@
package NGCP::Schema::Result::uid_global_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_global_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -31,20 +41,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("global_attrs_idx", ["name", "value"]);
__PACKAGE__->add_unique_constraint("global_attrs_idx", ["name", "value"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -116,3 +123,14 @@ NGCP::Schema::Result::uid_global_attrs
=item * L</value>
=back
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bo74cbc7vAUfdXhSB5+yIQ
# 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