MT#4225 Revert the revert, we'll patch later.

This reverts commit 2cd76e7b89.
3.1
Andreas Granig 12 years ago
parent 2cd76e7b89
commit e28e105186

@ -1,23 +1,13 @@
package NGCP::Schema::Result::acc;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc_backup");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.acc_trash");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::active_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.active_watchers");
__PACKAGE__->add_columns(
"id",
{
@ -81,17 +71,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -279,14 +272,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::address;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.address");
__PACKAGE__->add_columns(
"id",
{
@ -48,14 +38,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__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
@ -122,14 +116,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::admins;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON", "EncodedColumn");
__PACKAGE__->table("billing.admins");
__PACKAGE__->add_columns(
"id",
{
@ -61,10 +51,8 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("login_idx", ["login"]);
@ -79,12 +67,17 @@ __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
@ -198,14 +191,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::aliases;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.aliases");
__PACKAGE__->add_columns(
"id",
{
@ -84,17 +74,20 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__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
@ -254,14 +247,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::autoprov_configs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_configs");
__PACKAGE__->add_columns(
"id",
{
@ -41,10 +31,8 @@ __PACKAGE__->add_columns(
{ data_type => "mediumtext", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -59,13 +47,16 @@ __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
@ -126,14 +117,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::autoprov_device_line_ranges;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_device_line_ranges");
__PACKAGE__->add_columns(
"id",
{
@ -65,10 +55,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -89,6 +77,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -172,14 +164,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::autoprov_devices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_devices");
__PACKAGE__->add_columns(
"id",
{
@ -90,12 +80,17 @@ __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
@ -148,14 +143,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::autoprov_field_device_lines;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_field_device_lines");
__PACKAGE__->add_columns(
"id",
{
@ -60,10 +50,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_field_devices",
@ -71,14 +59,12 @@ __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",
@ -92,6 +78,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -166,14 +156,3 @@ 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,23 +1,14 @@
package NGCP::Schema::Result::autoprov_field_devices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_field_devices");
__PACKAGE__->add_columns(
"id",
{
@ -49,11 +40,9 @@ __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",
@ -61,7 +50,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -82,6 +70,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -150,14 +142,3 @@ 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,23 +1,14 @@
package NGCP::Schema::Result::autoprov_firmwares;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_firmwares");
__PACKAGE__->add_columns(
"id",
{
@ -41,10 +32,8 @@ __PACKAGE__->add_columns(
{ data_type => "longblob", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"device",
"NGCP::Schema::Result::autoprov_devices",
@ -65,6 +54,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -119,14 +112,3 @@ 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,23 +1,14 @@
package NGCP::Schema::Result::autoprov_profiles;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.autoprov_profiles");
__PACKAGE__->add_columns(
"id",
{
@ -44,10 +35,8 @@ __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",
@ -55,7 +44,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"firmware",
"NGCP::Schema::Result::autoprov_firmwares",
@ -67,12 +55,17 @@ __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
@ -141,14 +134,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_fees;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_fees");
__PACKAGE__->add_columns(
"id",
{
@ -98,10 +88,8 @@ __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",
@ -109,7 +97,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -117,7 +104,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"billing_zone",
"NGCP::Schema::Result::billing_zones",
@ -129,12 +115,17 @@ __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
@ -288,14 +279,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_fees_history;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_fees_history");
__PACKAGE__->add_columns(
"id",
{
@ -100,10 +90,8 @@ __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",
@ -116,7 +104,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"billing_zones_history",
"NGCP::Schema::Result::billing_zones_history",
@ -128,12 +115,17 @@ __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
@ -287,14 +279,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_mappings;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_mappings");
__PACKAGE__->add_columns(
"id",
{
@ -61,10 +51,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -77,7 +65,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -85,7 +72,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"product",
"NGCP::Schema::Result::products",
@ -97,12 +83,17 @@ __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
@ -190,14 +181,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_peaktime_special;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_peaktime_special");
__PACKAGE__->add_columns(
"id",
{
@ -47,22 +37,25 @@ __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
@ -124,14 +117,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_peaktime_weekdays;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_peaktime_weekdays");
__PACKAGE__->add_columns(
"id",
{
@ -41,22 +31,25 @@ __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
@ -122,14 +115,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_profiles;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_profiles");
__PACKAGE__->add_columns(
"id",
{
@ -79,16 +69,12 @@ __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",
@ -96,7 +82,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_mappings",
"NGCP::Schema::Result::billing_mappings",
@ -104,7 +89,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_peaktime_specials",
"NGCP::Schema::Result::billing_peaktime_special",
@ -112,7 +96,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_peaktime_weekdays",
"NGCP::Schema::Result::billing_peaktime_weekdays",
@ -120,7 +103,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_zones",
"NGCP::Schema::Result::billing_zones",
@ -128,7 +110,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"products",
"NGCP::Schema::Result::products",
@ -136,7 +117,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -148,12 +128,17 @@ __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
@ -365,14 +350,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_zones;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_zones");
__PACKAGE__->add_columns(
"id",
{
@ -39,13 +29,10 @@ __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",
@ -53,7 +40,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -61,19 +47,23 @@ __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
@ -161,14 +151,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::billing_zones_history;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.billing_zones_history");
__PACKAGE__->add_columns(
"id",
{
@ -41,10 +31,8 @@ __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",
@ -52,7 +40,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"bz",
"NGCP::Schema::Result::billing_zones",
@ -64,12 +51,17 @@ __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
@ -143,14 +135,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::carrier_contracts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.contracts");
__PACKAGE__->add_columns(
"id",
{
@ -41,13 +31,10 @@ __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",
@ -55,7 +42,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::carrier_customers",
@ -68,19 +54,23 @@ __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
@ -170,14 +160,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::carrier_customers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.customers");
__PACKAGE__->add_columns(
"id",
{
@ -34,16 +24,12 @@ __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",
@ -51,19 +37,23 @@ __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
@ -148,14 +138,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::carrier_orders;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.orders");
__PACKAGE__->add_columns(
"id",
{
@ -35,10 +25,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::carrier_customers",
@ -46,19 +34,23 @@ __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
@ -114,14 +106,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::carrier_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.payments");
__PACKAGE__->add_columns(
"id",
{
@ -42,10 +32,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"credit",
"NGCP::Schema::Result::credits",
@ -58,7 +46,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::carrier_orders",
@ -70,12 +57,17 @@ __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
@ -138,14 +130,3 @@ 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,16 +1,8 @@
package NGCP::Schema::Result::cdr;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components(
"InflateColumn::DateTime",
@ -18,10 +10,8 @@ __PACKAGE__->load_components(
"+NGCP::Schema::InflateColumn::DateTime::EpochMilli",
);
__PACKAGE__->table("accounting.cdr");
__PACKAGE__->add_columns(
"id",
{
@ -208,14 +198,27 @@ __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' }
);
}
}
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -632,20 +635,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::cfg_schema;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ngcp.cfg_schema");
__PACKAGE__->add_columns(
"id",
{
@ -39,17 +29,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -115,14 +108,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contacts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contacts");
__PACKAGE__->add_columns(
"id",
{
@ -81,10 +71,8 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 31 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -97,7 +85,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -105,7 +92,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_comm_contacts",
"NGCP::Schema::Result::customers",
@ -113,7 +99,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_contacts",
"NGCP::Schema::Result::customers",
@ -121,7 +106,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customers_tech_contacts",
"NGCP::Schema::Result::customers",
@ -129,19 +113,23 @@ __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
@ -312,14 +300,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contract_balances;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_balances");
__PACKAGE__->add_columns(
"id",
{
@ -62,10 +52,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -73,7 +61,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"contract_credits",
"NGCP::Schema::Result::contract_credits",
@ -81,7 +68,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"invoice",
"NGCP::Schema::Result::invoices",
@ -93,12 +79,17 @@ __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
@ -201,14 +192,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contract_credits;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_credits");
__PACKAGE__->add_columns(
"id",
{
@ -60,10 +50,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"balance",
"NGCP::Schema::Result::contract_balances",
@ -71,19 +59,23 @@ __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
@ -170,14 +162,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contract_fraud_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_fraud_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -47,25 +37,27 @@ __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
@ -161,14 +153,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contract_registers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contract_registers");
__PACKAGE__->add_columns(
"id",
{
@ -41,22 +31,25 @@ __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
@ -123,14 +116,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::contracts;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.contracts");
__PACKAGE__->add_columns(
"id",
{
@ -84,10 +74,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"billing_mappings",
"NGCP::Schema::Result::billing_mappings",
@ -95,7 +83,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"contact",
"NGCP::Schema::Result::contacts",
@ -108,7 +95,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contract_balances",
"NGCP::Schema::Result::contract_balances",
@ -116,7 +102,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"contract_fraud_preference",
"NGCP::Schema::Result::contract_fraud_preferences",
@ -124,7 +109,6 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"contract_registers",
"NGCP::Schema::Result::contract_registers",
@ -132,7 +116,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::customers",
@ -145,7 +128,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::orders",
@ -158,7 +140,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"voip_subscribers",
"NGCP::Schema::Result::voip_subscribers",
@ -193,6 +174,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -355,14 +340,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::credit_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.credit_payments");
__PACKAGE__->add_columns(
"id",
{
@ -42,10 +32,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"credit",
"NGCP::Schema::Result::contract_credits",
@ -53,19 +41,23 @@ __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
@ -128,14 +120,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::credits;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.credits");
__PACKAGE__->add_columns(
"id",
{
@ -35,10 +25,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::carrier_contracts",
@ -46,19 +34,23 @@ __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
@ -114,14 +106,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::customer_registers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.customer_registers");
__PACKAGE__->add_columns(
"id",
{
@ -41,22 +31,25 @@ __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
@ -123,14 +116,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::customers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.customers");
__PACKAGE__->add_columns(
"id",
{
@ -78,13 +68,10 @@ __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",
@ -97,7 +84,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"contact",
"NGCP::Schema::Result::contacts",
@ -110,7 +96,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -118,7 +103,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"customer_registers",
"NGCP::Schema::Result::customer_registers",
@ -126,7 +110,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
@ -134,7 +117,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -147,7 +129,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"tech_contact",
"NGCP::Schema::Result::contacts",
@ -159,12 +140,17 @@ __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
@ -321,14 +307,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::db_schema;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ngcp.db_schema");
__PACKAGE__->add_columns(
"id",
{
@ -39,17 +29,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -115,14 +108,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dbaliases;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dbaliases");
__PACKAGE__->add_columns(
"id",
{
@ -36,17 +26,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -121,14 +114,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dialog;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialog");
__PACKAGE__->add_columns(
"id",
{
@ -89,14 +79,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 512 },
);
__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
@ -272,14 +266,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dialog_vars;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialog_vars");
__PACKAGE__->add_columns(
"id",
{
@ -36,14 +26,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 512 },
);
__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
@ -102,14 +96,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dialplan;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dialplan");
__PACKAGE__->add_columns(
"id",
{
@ -44,14 +34,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 32 },
);
__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,14 +124,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dispatcher;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dispatcher");
__PACKAGE__->add_columns(
"id",
{
@ -40,14 +30,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 64 },
);
__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
@ -121,14 +115,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::dom_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.dom_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -47,14 +37,18 @@ __PACKAGE__->add_columns(
},
);
__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,14 +130,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::domain;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.domain");
__PACKAGE__->add_columns(
"id",
{
@ -39,17 +29,20 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__PACKAGE__->set_primary_key("id");
__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
@ -113,14 +106,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.domain_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -43,17 +33,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -133,14 +126,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::domain_resellers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.domain_resellers");
__PACKAGE__->add_columns(
"id",
{
@ -42,10 +32,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"domain",
"NGCP::Schema::Result::domains",
@ -53,19 +41,23 @@ __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
@ -128,14 +120,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::domains;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.domains");
__PACKAGE__->add_columns(
"id",
{
@ -30,13 +20,10 @@ __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",
@ -44,19 +31,23 @@ __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
@ -121,14 +112,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::fax_destinations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.fax_destinations");
__PACKAGE__->add_columns(
"id",
{
@ -67,14 +57,18 @@ __PACKAGE__->add_columns(
},
);
__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
@ -156,14 +150,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::fax_journal;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.fax_journal");
__PACKAGE__->add_columns(
"id",
{
@ -82,14 +72,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
);
__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
@ -207,14 +201,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::fax_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__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 },
@ -55,14 +45,18 @@ __PACKAGE__->add_columns(
},
);
__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
@ -136,14 +130,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::htable;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.htable");
__PACKAGE__->add_columns(
"id",
{
@ -38,14 +28,18 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__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
@ -112,14 +106,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::interceptions;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.interceptions");
__PACKAGE__->add_columns(
"id",
{
@ -30,14 +20,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 31 },
);
__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
@ -78,14 +72,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::invoices;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.invoices");
__PACKAGE__->add_columns(
"id",
{
@ -36,13 +26,10 @@ __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",
@ -50,19 +37,23 @@ __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
@ -148,14 +139,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::kamailio_acc;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::kamailio_acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc_backup");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::kamailio_acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.acc_trash");
__PACKAGE__->add_columns(
"id",
{
@ -69,14 +59,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 128 },
);
__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
@ -214,14 +208,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::language_strings;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.language_strings");
__PACKAGE__->add_columns(
"id",
{
@ -34,17 +24,20 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__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
@ -108,14 +101,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::lcr_gw;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_gw");
__PACKAGE__->add_columns(
"id",
{
@ -61,28 +51,29 @@ __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
@ -232,14 +223,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::lcr_rule;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_rule");
__PACKAGE__->add_columns(
"id",
{
@ -52,28 +42,30 @@ __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
@ -179,14 +171,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::lcr_rule_target;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.lcr_rule_target");
__PACKAGE__->add_columns(
"id",
{
@ -53,13 +43,10 @@ __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",
@ -67,19 +54,23 @@ __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
@ -173,14 +164,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::lnp_numbers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.lnp_numbers");
__PACKAGE__->add_columns(
"id",
{
@ -49,22 +39,25 @@ __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
@ -132,14 +125,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::lnp_providers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__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 },
@ -25,10 +15,8 @@ __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",
@ -36,19 +24,23 @@ __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
@ -102,14 +94,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::location;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.location");
__PACKAGE__->add_columns(
"id",
{
@ -84,17 +74,20 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
);
__PACKAGE__->set_primary_key("id");
__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
@ -254,14 +247,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::location_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.location_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -47,14 +37,18 @@ __PACKAGE__->add_columns(
},
);
__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,14 +130,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::mark;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.mark");
__PACKAGE__->add_columns(
"id",
{
@ -32,14 +22,18 @@ __PACKAGE__->add_columns(
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
);
__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
@ -86,14 +80,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::message_packets;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__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 },
@ -32,7 +22,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"message",
"NGCP::Schema::Result::messages",
@ -41,12 +30,17 @@ __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
@ -88,14 +82,3 @@ 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,27 +1,17 @@
package NGCP::Schema::Result::messages;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components(
"InflateColumn::DateTime",
"InflateColumn::DateTime",
"Helper::Row::ToJSON",
"+NGCP::Schema::InflateColumn::DateTime::EpochMicro",
);
__PACKAGE__->table("sipstats.messages");
__PACKAGE__->add_columns(
"id",
{
@ -83,12 +73,26 @@ __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
@ -213,21 +217,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::mobile_push_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__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 },
@ -43,14 +33,18 @@ __PACKAGE__->add_columns(
},
);
__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
@ -104,14 +98,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::ncos_levels;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_levels");
__PACKAGE__->add_columns(
"id",
{
@ -48,13 +38,10 @@ __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",
@ -62,7 +49,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"ncos_pattern_lists",
"NGCP::Schema::Result::ncos_pattern_list",
@ -70,7 +56,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -82,12 +67,17 @@ __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
@ -185,14 +175,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::ncos_lnp_list;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_lnp_list");
__PACKAGE__->add_columns(
"id",
{
@ -44,13 +34,10 @@ __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",
@ -58,19 +45,23 @@ __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
@ -150,14 +141,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::ncos_pattern_list;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.ncos_pattern_list");
__PACKAGE__->add_columns(
"id",
{
@ -39,25 +29,27 @@ __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
@ -130,14 +122,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::numbers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.numbers");
__PACKAGE__->add_columns(
"number",
{ data_type => "varchar", is_nullable => 0, size => 42 },
@ -30,10 +20,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("number");
__PACKAGE__->belongs_to(
"subscriber",
"NGCP::Schema::Result::subscribers",
@ -45,12 +33,17 @@ __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
@ -99,14 +92,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::order_payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.order_payments");
__PACKAGE__->add_columns(
"id",
{
@ -42,10 +32,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
"order",
"NGCP::Schema::Result::orders",
@ -53,19 +41,23 @@ __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
@ -128,14 +120,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::orders;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.orders");
__PACKAGE__->add_columns(
"id",
{
@ -90,10 +80,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"contracts",
"NGCP::Schema::Result::contracts",
@ -101,7 +89,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"customer",
"NGCP::Schema::Result::customers",
@ -114,7 +101,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"delivery_contact",
"NGCP::Schema::Result::contacts",
@ -127,7 +113,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"invoice",
"NGCP::Schema::Result::invoices",
@ -140,7 +125,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->has_many(
"order_payments",
"NGCP::Schema::Result::order_payments",
@ -148,7 +132,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -160,12 +143,17 @@ __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
@ -310,14 +298,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::packets;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.packets");
__PACKAGE__->add_columns(
"id",
{
@ -48,12 +38,17 @@ __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
@ -121,14 +116,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::payments;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.payments");
__PACKAGE__->add_columns(
"id",
{
@ -62,10 +52,8 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"credit_payments",
"NGCP::Schema::Result::credit_payments",
@ -73,19 +61,23 @@ __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
@ -193,14 +185,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::peer_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.peer_preferences");
__PACKAGE__->add_columns(
"id",
{
@ -47,14 +37,18 @@ __PACKAGE__->add_columns(
},
);
__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,14 +130,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::prepaid_costs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("accounting.prepaid_costs");
__PACKAGE__->add_columns(
"id",
{
@ -41,14 +31,18 @@ __PACKAGE__->add_columns(
},
);
__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
@ -107,14 +101,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::presentity;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.presentity");
__PACKAGE__->add_columns(
"id",
{
@ -44,17 +34,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -150,14 +143,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::products;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.products");
__PACKAGE__->add_columns(
"id",
{
@ -66,16 +56,12 @@ __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",
@ -83,7 +69,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"billing_profile",
"NGCP::Schema::Result::billing_profiles",
@ -96,7 +81,6 @@ __PACKAGE__->belongs_to(
},
);
__PACKAGE__->belongs_to(
"reseller",
"NGCP::Schema::Result::resellers",
@ -108,12 +92,17 @@ __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
@ -239,14 +228,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::provisioning_voip_subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("provisioning.voip_subscribers");
__PACKAGE__->add_columns(
"id",
{
@ -67,19 +57,14 @@ __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",
@ -94,7 +79,6 @@ __PACKAGE__->belongs_to(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cc_mappings",
"NGCP::Schema::Result::voip_cc_mappings",
@ -102,7 +86,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_destination_sets",
"NGCP::Schema::Result::voip_cf_destination_sets",
@ -110,7 +93,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_mappings",
"NGCP::Schema::Result::voip_cf_mappings",
@ -118,7 +100,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_cf_time_sets",
"NGCP::Schema::Result::voip_cf_time_sets",
@ -126,7 +107,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_contacts",
"NGCP::Schema::Result::voip_contacts",
@ -134,7 +114,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_dbaliases",
"NGCP::Schema::Result::voip_dbaliases",
@ -142,7 +121,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_fax_destinations",
"NGCP::Schema::Result::voip_fax_destinations",
@ -150,7 +128,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"voip_fax_preference",
"NGCP::Schema::Result::voip_fax_preferences",
@ -158,7 +135,6 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"voip_reminder",
"NGCP::Schema::Result::voip_reminder",
@ -166,7 +142,6 @@ __PACKAGE__->might_have(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_speed_dials",
"NGCP::Schema::Result::voip_speed_dial",
@ -174,7 +149,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_trusted_sources",
"NGCP::Schema::Result::voip_trusted_sources",
@ -182,7 +156,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_usr_preferences",
"NGCP::Schema::Result::voip_usr_preferences",
@ -238,6 +211,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -463,36 +440,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::pua;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.pua");
__PACKAGE__->add_columns(
"id",
{
@ -64,17 +54,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -225,14 +218,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::resellers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing.resellers");
__PACKAGE__->add_columns(
"id",
{
@ -44,16 +34,12 @@ __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",
@ -61,7 +47,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"billing_profiles",
"NGCP::Schema::Result::billing_profiles",
@ -69,7 +54,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"contract",
"NGCP::Schema::Result::contracts",
@ -77,7 +61,6 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"customers",
"NGCP::Schema::Result::customers",
@ -85,7 +68,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"domain_resellers",
"NGCP::Schema::Result::domain_resellers",
@ -93,7 +75,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"ncos_levels",
"NGCP::Schema::Result::ncos_levels",
@ -101,7 +82,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"orders",
"NGCP::Schema::Result::orders",
@ -109,7 +89,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"products",
"NGCP::Schema::Result::products",
@ -117,7 +96,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_intercepts",
"NGCP::Schema::Result::voip_intercept",
@ -125,7 +103,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_number_block_resellers",
"NGCP::Schema::Result::voip_number_block_resellers",
@ -133,7 +110,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"voip_numbers",
"NGCP::Schema::Result::voip_numbers",
@ -168,6 +144,10 @@ sub TO_JSON {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -308,14 +288,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::rls_presentity;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.rls_presentity");
__PACKAGE__->add_columns(
"id",
{
@ -44,17 +34,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -145,14 +138,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::rls_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.rls_watchers");
__PACKAGE__->add_columns(
"id",
{
@ -79,17 +69,20 @@ __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"]);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
1;
__END__
=encoding UTF-8
=head1 NAME
@ -272,14 +265,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::sca_subscriptions;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.sca_subscriptions");
__PACKAGE__->add_columns(
"id",
{
@ -52,20 +42,23 @@ __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
@ -185,14 +178,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::sems_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.sems_registrations");
__PACKAGE__->add_columns(
"subscriber_id",
{ data_type => "integer", is_nullable => 0 },
@ -43,14 +33,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 512 },
);
__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
@ -118,14 +112,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::silo;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.silo");
__PACKAGE__->add_columns(
"id",
{
@ -57,14 +47,18 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
);
__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
@ -175,14 +169,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::sipstats_mark;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.mark");
__PACKAGE__->add_columns(
"name",
{ data_type => "varchar", is_nullable => 0, size => 255 },
@ -25,14 +15,18 @@ __PACKAGE__->add_columns(
{ data_type => "bigint", extra => { unsigned => 1 }, is_nullable => 0 },
);
__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
@ -72,14 +66,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::speed_dial;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.speed_dial");
__PACKAGE__->add_columns(
"id",
{
@ -44,20 +34,23 @@ __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
@ -164,14 +157,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::statistics;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sipstats.statistics");
__PACKAGE__->add_columns(
"id",
{
@ -233,14 +223,18 @@ __PACKAGE__->add_columns(
},
);
__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
@ -486,14 +480,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::subscriber;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.subscriber");
__PACKAGE__->add_columns(
"id",
{
@ -53,17 +43,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -178,14 +171,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("carrier.subscribers");
__PACKAGE__->add_columns(
"id",
{
@ -43,19 +33,14 @@ __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",
@ -63,19 +48,23 @@ __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
@ -185,14 +174,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::trusted;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.trusted");
__PACKAGE__->add_columns(
"id",
{
@ -36,14 +26,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 64 },
);
__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
@ -102,14 +96,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::uid_credentials;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_credentials");
__PACKAGE__->add_columns(
"id",
{
@ -49,14 +39,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 64 },
);
__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
@ -142,14 +136,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::uid_domain;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_domain");
__PACKAGE__->add_columns(
"id",
{
@ -39,17 +29,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -113,14 +106,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::uid_domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_domain_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -43,17 +33,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -133,14 +126,3 @@ 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,23 +1,13 @@
package NGCP::Schema::Result::uid_global_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
use Scalar::Util qw(blessed);
our $VERSION = '2.006';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
extends 'DBIx::Class::Core';
use parent 'DBIx::Class::Core';
our $VERSION = '2.006';
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("kamailio.uid_global_attrs");
__PACKAGE__->add_columns(
"id",
{
@ -41,17 +31,20 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__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
@ -123,14 +116,3 @@ 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