agranig/2.004-ramoptimized 1.003
Lars Dieckow 12 years ago
parent e6810ca7ee
commit 4dafc973b9

@ -4,6 +4,10 @@
Changes - Revision history for NGCP-Schema
=head2 1.003 2013-06-27
add component for JSON serialisation hooks
=head2 1.002 2013-06-14
=over

@ -1,6 +1,6 @@
=encoding UTF-8
NGCP-Schema version 1.002
NGCP-Schema version 1.003
=head1 NAME

@ -5,7 +5,7 @@ use NGCP::Schema::Config qw();
use Regexp::Common qw(net);
use Regexp::IPv6 qw($IPv6_re);
our $VERSION = '1.002';
our $VERSION = '1.003';
has('config', is => 'rw', isa => 'NGCP::Schema::Config', lazy => 1, default => sub {
return NGCP::Schema::Config->instance;
@ -83,7 +83,7 @@ NGCP::Schema - DBIC-derived ORM schema classes
=head1 VERSION
This document describes NGCP::Schema version 1.002
This document describes NGCP::Schema version 1.003
=head1 SYNOPSIS

@ -5,7 +5,7 @@ use MooseX::FileAttribute qw(has_file);
use MooseX::Singleton qw(has);
use XML::Simple qw();
our $VERSION = '1.002';
our $VERSION = '1.003';
has_file('config_file', is => 'rw', required => 1, default => '/etc/ngcp-ossbss/provisioning.conf');
has('as_hash', isa => 'HashRef', is => 'rw', lazy => 1, default => method {
@ -53,7 +53,7 @@ NGCP::Schema::Config - configuration class
=head1 VERSION
This document describes NGCP::Schema::Config version 1.002
This document describes NGCP::Schema::Config version 1.003
=head1 SYNOPSIS

@ -2,7 +2,7 @@ package NGCP::Schema::Exception;
use Sipwise::Base;
use namespace::sweep;
our $VERSION = '1.002';
our $VERSION = '1.003';
extends 'Throwable::Error';
has('description', is => 'ro', isa => 'Str', required => 1);
@ -20,7 +20,7 @@ NGCP::Schema::Exception - exceptions that work like ossbss mydie
=head1 VERSION
This document describes NGCP::Schema::Exception version 1.002
This document describes NGCP::Schema::Exception version 1.003
=head1 SYNOPSIS

@ -1,6 +1,6 @@
package NGCP::Schema::accounting;
use Sipwise::Base;
our $VERSION = '1.002';
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -10,8 +10,8 @@ extends 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-09 12:30:37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/gINj3OenRQkhpdpfbQq4Q
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z1aNc/ZIKuZ3Q4C76a43rA
use MooseX::ClassAttribute qw(class_has);

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::acc;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::accounting::Result::acc
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc>
@ -209,8 +218,8 @@ NGCP::Schema::accounting::Result::acc
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f8yHYdieGZkC662yd4mXRA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc_backup");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::accounting::Result::acc_backup
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc_backup>
@ -209,8 +218,8 @@ NGCP::Schema::accounting::Result::acc_backup
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jpjB0CKI/jfdzcTjhVwing
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc_trash");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::accounting::Result::acc_trash
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc_trash>
@ -209,8 +218,8 @@ NGCP::Schema::accounting::Result::acc_trash
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KddsPmfr/vFaRt6OWmowyw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::cdr;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("cdr");
@ -205,6 +206,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -217,6 +224,8 @@ NGCP::Schema::accounting::Result::cdr
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<cdr>
@ -623,8 +632,8 @@ NGCP::Schema::accounting::Result::cdr
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xAU1+ipDLE/MiezrvoL2kw
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:39
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rNMfsyIh9LAGJGoe/or06w
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::mark;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("mark");
@ -33,6 +34,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -45,6 +52,8 @@ NGCP::Schema::accounting::Result::mark
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<mark>
@ -81,8 +90,8 @@ NGCP::Schema::accounting::Result::mark
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TU3vol9dQd39yNd9BoH9tA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::accounting::Result::prepaid_costs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("prepaid_costs");
@ -42,6 +43,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -54,6 +61,8 @@ NGCP::Schema::accounting::Result::prepaid_costs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<prepaid_costs>
@ -102,8 +111,8 @@ NGCP::Schema::accounting::Result::prepaid_costs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:25:53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4dvDMc8QYbS59++/ItBWFw
# 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

@ -1,6 +1,6 @@
package NGCP::Schema::billing;
use Sipwise::Base;
our $VERSION = '1.002';
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -10,8 +10,8 @@ extends 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-04-09 12:33:44
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pFNyB1lQTWbvEckC6oqjJw
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DHRR5lVe8fUgAfjVktxnZw
use MooseX::ClassAttribute qw(class_has);
use NGCP::Schema qw();
@ -293,7 +293,7 @@ NGCP::Schema::billing - billing schema
=head1 VERSION
This document describes NGCP::Schema::billing version 1.002
This document describes NGCP::Schema::billing version 1.003
=head1 SYNOPSIS

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::admins;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime", "EncodedColumn");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON", "EncodedColumn");
__PACKAGE__->table("admins");
@ -78,6 +79,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -90,6 +97,8 @@ NGCP::Schema::billing::Result::admins
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<admins>
@ -193,8 +202,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6atsBdT63ZmQFnX0f9db3Q
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_fees;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_fees");
@ -128,6 +129,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -140,6 +147,8 @@ NGCP::Schema::billing::Result::billing_fees
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_fees>
@ -283,8 +292,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_zones>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n1SX8I87faOt3klxYfMDFg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_fees_history;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_fees_history");
@ -127,6 +128,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -139,6 +146,8 @@ NGCP::Schema::billing::Result::billing_fees_history
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_fees_history>
@ -282,8 +291,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_zones_history>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aRjenW1mUoQtEvkjMu5avg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_mappings;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_mappings");
@ -96,6 +97,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -108,6 +115,8 @@ NGCP::Schema::billing::Result::billing_mappings
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_mappings>
@ -185,8 +194,8 @@ Related object: L<NGCP::Schema::billing::Result::products>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:225MggshQFACPaHfh0+0og
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_peaktime_special;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_peaktime_special");
@ -56,6 +57,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -68,6 +75,8 @@ NGCP::Schema::billing::Result::billing_peaktime_special
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_peaktime_special>
@ -119,8 +128,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9O4W620S1jmoj2B22u2Ddg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_peaktime_weekdays;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_peaktime_weekdays");
@ -50,6 +51,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -62,6 +69,8 @@ NGCP::Schema::billing::Result::billing_peaktime_weekdays
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_peaktime_weekdays>
@ -117,8 +126,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_profiles>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NGLbzj9NKEMT1rAKA38o7w
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_profiles;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_profiles");
@ -147,6 +148,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -159,6 +166,8 @@ NGCP::Schema::billing::Result::billing_profiles
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_profiles>
@ -360,8 +369,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SBSq4vKZr/20ylpBKPikEg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_zones;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_zones");
@ -67,6 +68,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -79,6 +86,8 @@ NGCP::Schema::billing::Result::billing_zones
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_zones>
@ -156,8 +165,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_zones_history>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DnazRTuH+jbvs3txtwr8jA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::billing_zones_history;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("billing_zones_history");
@ -63,6 +64,12 @@ __PACKAGE__->belongs_to(
on_update => "NO ACTION",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -75,6 +82,8 @@ NGCP::Schema::billing::Result::billing_zones_history
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<billing_zones_history>
@ -138,8 +147,8 @@ Related object: L<NGCP::Schema::billing::Result::billing_zones>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+5nRBZS4poP8ccSrwWwglw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contacts;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contacts");
@ -115,6 +116,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -127,6 +134,8 @@ NGCP::Schema::billing::Result::contacts
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contacts>
@ -280,8 +289,8 @@ Related object: L<NGCP::Schema::billing::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UkzaooS4vWOA0FPMo4DYOg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contract_balances;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contract_balances");
@ -92,6 +93,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -104,6 +111,8 @@ NGCP::Schema::billing::Result::contract_balances
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contract_balances>
@ -196,8 +205,8 @@ Related object: L<NGCP::Schema::billing::Result::invoices>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2W23l24YFniu/LhB2SlSQA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contract_credits;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contract_credits");
@ -77,6 +78,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -89,6 +96,8 @@ NGCP::Schema::billing::Result::contract_credits
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contract_credits>
@ -165,8 +174,8 @@ Related object: L<NGCP::Schema::billing::Result::credit_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h027HEDm/o+lvZAl53tI4w
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contract_fraud_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contract_fraud_preferences");
@ -59,6 +60,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::billing::Result::contract_fraud_preferences
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contract_fraud_preferences>
@ -156,8 +165,8 @@ Related object: L<NGCP::Schema::billing::Result::contracts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IqPbXT/vMI2VoQHckQRAsQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contract_registers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contract_registers");
@ -50,6 +51,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -62,6 +69,8 @@ NGCP::Schema::billing::Result::contract_registers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contract_registers>
@ -118,8 +127,8 @@ Related object: L<NGCP::Schema::billing::Result::contracts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c6woIvUVC0qw2fsZYB48vg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::contracts;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contracts");
@ -192,6 +193,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -204,6 +211,8 @@ NGCP::Schema::billing::Result::contracts
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contracts>
@ -357,8 +366,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/BaF10tu+lDDuMg1rJukIg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::credit_payments;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("credit_payments");
@ -59,6 +60,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::billing::Result::credit_payments
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<credit_payments>
@ -123,8 +132,8 @@ Related object: L<NGCP::Schema::billing::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rcquMhgAoV/Z3/x5WVmi3A
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::customer_registers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("customer_registers");
@ -50,6 +51,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -62,6 +69,8 @@ NGCP::Schema::billing::Result::customer_registers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<customer_registers>
@ -118,8 +127,8 @@ Related object: L<NGCP::Schema::billing::Result::customers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GZdfF8xCpT8vSY6pbs7zqw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::customers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("customers");
@ -158,6 +159,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -170,6 +177,8 @@ NGCP::Schema::billing::Result::customers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<customers>
@ -316,8 +325,8 @@ Related object: L<NGCP::Schema::billing::Result::contacts>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8mpGeT9ZjPmlntgImyTEYQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::domain_resellers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("domain_resellers");
@ -59,6 +60,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::billing::Result::domain_resellers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<domain_resellers>
@ -123,8 +132,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xf/Ds0+MhEnj5JpZgWmisg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::domains;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("domains");
@ -50,6 +51,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -62,6 +69,8 @@ NGCP::Schema::billing::Result::domains
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<domains>
@ -116,8 +125,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ETgUww0SIeIZ7f44hvtvdg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::invoices;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("invoices");
@ -56,6 +57,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -68,6 +75,8 @@ NGCP::Schema::billing::Result::invoices
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<invoices>
@ -143,8 +152,8 @@ Related object: L<NGCP::Schema::billing::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:itFB0vabhky1YAHweyr00g
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::lnp_numbers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("lnp_numbers");
@ -58,6 +59,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -70,6 +77,8 @@ NGCP::Schema::billing::Result::lnp_numbers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<lnp_numbers>
@ -127,8 +136,8 @@ Related object: L<NGCP::Schema::billing::Result::lnp_providers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tbxi6kPnug3wPlek6mIPKw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::lnp_providers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("lnp_providers");
@ -42,6 +43,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -54,6 +61,8 @@ NGCP::Schema::billing::Result::lnp_providers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<lnp_providers>
@ -97,8 +106,8 @@ Related object: L<NGCP::Schema::billing::Result::ncos_lnp_list>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GQkTs49901z/MpL1DgRgqQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::ncos_levels;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ncos_levels");
@ -81,6 +82,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -93,6 +100,8 @@ NGCP::Schema::billing::Result::ncos_levels
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<ncos_levels>
@ -180,8 +189,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IsORiLD9bnbuvYPVSksfbQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::ncos_lnp_list;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ncos_lnp_list");
@ -64,6 +65,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -76,6 +83,8 @@ NGCP::Schema::billing::Result::ncos_lnp_list
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<ncos_lnp_list>
@ -145,8 +154,8 @@ Related object: L<NGCP::Schema::billing::Result::ncos_levels>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MMYqujY7DWWv1gsSWfKvSg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::ncos_pattern_list;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("ncos_pattern_list");
@ -51,6 +52,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -63,6 +70,8 @@ NGCP::Schema::billing::Result::ncos_pattern_list
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<ncos_pattern_list>
@ -125,8 +134,8 @@ Related object: L<NGCP::Schema::billing::Result::ncos_levels>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pzEjI9V0NelpRKFcjzPCKw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::order_payments;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("order_payments");
@ -59,6 +60,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::billing::Result::order_payments
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<order_payments>
@ -123,8 +132,8 @@ Related object: L<NGCP::Schema::billing::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ceNa7x4MMH2DhO/ptDMuIg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::orders;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("orders");
@ -159,6 +160,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -171,6 +178,8 @@ NGCP::Schema::billing::Result::orders
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<orders>
@ -305,8 +314,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MikVzgtSviG6dwDCQ8iORQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::payments;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("payments");
@ -79,6 +80,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -91,6 +98,8 @@ NGCP::Schema::billing::Result::payments
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<payments>
@ -188,8 +197,8 @@ Related object: L<NGCP::Schema::billing::Result::order_payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fmR2PvM4TwZU0v6Fi91mbw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::products;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("products");
@ -108,6 +109,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -120,6 +127,8 @@ NGCP::Schema::billing::Result::products
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<products>
@ -235,8 +244,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xwVaFogM1eKSdLY8wYkeVg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::resellers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("resellers");
@ -147,6 +148,12 @@ __PACKAGE__->has_many(
{ "foreign.reseller_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -159,6 +166,8 @@ NGCP::Schema::billing::Result::resellers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<resellers>
@ -295,8 +304,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_numbers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TiilZCjJa2Id6DkMO8ncsg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::voip_intercept;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("voip_intercept");
@ -79,6 +80,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -91,6 +98,8 @@ NGCP::Schema::billing::Result::voip_intercept
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<voip_intercept>
@ -190,8 +199,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ons7g/rhT7flX1JiRqaSww
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HSbXjeZvDF+aJOpkeQAANA
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::voip_number_block_resellers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("voip_number_block_resellers");
@ -59,6 +60,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::billing::Result::voip_number_block_resellers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<voip_number_block_resellers>
@ -123,8 +132,8 @@ Related object: L<NGCP::Schema::billing::Result::resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9/cie7vy96roO8W4l9XL1g
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o6JylieCVBzZsjcYA9AZAg
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::voip_number_blocks;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("voip_number_blocks");
@ -52,6 +53,12 @@ __PACKAGE__->has_many(
{ "foreign.number_block_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -64,6 +71,8 @@ NGCP::Schema::billing::Result::voip_number_blocks
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<voip_number_blocks>
@ -146,8 +155,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_number_block_resellers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BAX7cPR06pmYcY7ghZdyEw
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vVgCgcB8twydsAjMOpWR+g
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::voip_numbers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("voip_numbers");
@ -102,6 +103,12 @@ __PACKAGE__->has_many(
{ "foreign.primary_number_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -114,6 +121,8 @@ NGCP::Schema::billing::Result::voip_numbers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<voip_numbers>
@ -224,8 +233,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gykfIbXJYZtWkw5kHmNzpQ
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vq+N7GpcAMtkUj3s0wPz0g
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::billing::Result::voip_subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("voip_subscribers");
@ -103,6 +104,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -115,6 +122,8 @@ NGCP::Schema::billing::Result::voip_subscribers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<voip_subscribers>
@ -221,8 +230,8 @@ Related object: L<NGCP::Schema::billing::Result::voip_numbers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/mMT/Ej0fa3n8zSnX0OIPA
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qT/XQFGM1l0ygvjRpIy47g
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,6 +1,6 @@
package NGCP::Schema::carrier;
use Sipwise::Base;
our $VERSION = '1.002';
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -10,8 +10,8 @@ extends 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-04-09 12:33:48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2tiLLQMoqYYiicae6bptbA
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cmbKPM+l0sSqlara6KgQng
use MooseX::ClassAttribute qw(class_has);

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::contracts;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("contracts");
@ -74,6 +75,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -86,6 +93,8 @@ NGCP::Schema::carrier::Result::contracts
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<contracts>
@ -165,8 +174,8 @@ Related object: L<NGCP::Schema::carrier::Result::subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d46IgTNumWEXAVJx03BzmA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::credits;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("credits");
@ -52,6 +53,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -64,6 +71,8 @@ NGCP::Schema::carrier::Result::credits
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<credits>
@ -109,8 +118,8 @@ Related object: L<NGCP::Schema::carrier::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tFtze3mf7eWMpGViK7Xh7g
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::customers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("customers");
@ -57,6 +58,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -69,6 +76,8 @@ NGCP::Schema::carrier::Result::customers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<customers>
@ -143,8 +152,8 @@ Related object: L<NGCP::Schema::carrier::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4FqPE3wVqTd6HjZ02SElsQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::interceptions;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("interceptions");
@ -31,6 +32,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -43,6 +50,8 @@ NGCP::Schema::carrier::Result::interceptions
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<interceptions>
@ -73,8 +82,8 @@ NGCP::Schema::carrier::Result::interceptions
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:phVbAWKZkxMxvkeNCY4AvQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::numbers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("numbers");
@ -44,6 +45,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -56,6 +63,8 @@ NGCP::Schema::carrier::Result::numbers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<numbers>
@ -94,8 +103,8 @@ Related object: L<NGCP::Schema::carrier::Result::subscribers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A1ckQPj+9ToEhnVRhFAhiQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::orders;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("orders");
@ -52,6 +53,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -64,6 +71,8 @@ NGCP::Schema::carrier::Result::orders
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<orders>
@ -109,8 +118,8 @@ Related object: L<NGCP::Schema::carrier::Result::payments>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e1YggQlXP+8v0qnBwDgGLQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::payments;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("payments");
@ -69,6 +70,12 @@ __PACKAGE__->belongs_to(
on_update => "CASCADE",
},
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -81,6 +88,8 @@ NGCP::Schema::carrier::Result::payments
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<payments>
@ -133,8 +142,8 @@ Related object: L<NGCP::Schema::carrier::Result::orders>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vX8z+Mrdx/fqvdqAt+YmGw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::carrier::Result::subscribers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("subscribers");
@ -69,6 +70,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -81,6 +88,8 @@ NGCP::Schema::carrier::Result::subscribers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<subscribers>
@ -180,8 +189,8 @@ Related object: L<NGCP::Schema::carrier::Result::numbers>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OXpExeY0G/kpV3+RlGinrA
# 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

@ -1,6 +1,6 @@
package NGCP::Schema::kamailio;
use Sipwise::Base;
our $VERSION = '1.002';
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -10,8 +10,8 @@ extends 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-04-09 12:33:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F+YCA+y1IL8DMrefBOhpIg
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tnyRnnaNxwcR9xtrvrlVEw
use MooseX::ClassAttribute qw(class_has);

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::acc;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::kamailio::Result::acc
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc>
@ -209,8 +218,8 @@ NGCP::Schema::kamailio::Result::acc
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OzWbF2wOuKm/M632lMRarw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::acc_backup;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc_backup");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::kamailio::Result::acc_backup
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc_backup>
@ -209,8 +218,8 @@ NGCP::Schema::kamailio::Result::acc_backup
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KMuAkzDxgGIGKINuD/fSyQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::acc_trash;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("acc_trash");
@ -70,6 +71,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -82,6 +89,8 @@ NGCP::Schema::kamailio::Result::acc_trash
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<acc_trash>
@ -209,8 +218,8 @@ NGCP::Schema::kamailio::Result::acc_trash
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aTH57P2Btra1waRw2I3k1A
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::active_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("active_watchers");
@ -85,6 +86,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -97,6 +104,8 @@ NGCP::Schema::kamailio::Result::active_watchers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<active_watchers>
@ -274,8 +283,8 @@ NGCP::Schema::kamailio::Result::active_watchers
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bpjVrVHrNeP3K2AVa59/Zg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::address;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("address");
@ -49,6 +50,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -61,6 +68,8 @@ NGCP::Schema::kamailio::Result::address
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<address>
@ -117,8 +126,8 @@ NGCP::Schema::kamailio::Result::address
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2AiRx5PnGWfHeS58iGMXow
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::aliases;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("aliases");
@ -88,6 +89,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -100,6 +107,8 @@ NGCP::Schema::kamailio::Result::aliases
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<aliases>
@ -249,8 +258,8 @@ NGCP::Schema::kamailio::Result::aliases
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L8SqIybNv2ShI8f3CrJAhA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dbaliases;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dbaliases");
@ -40,6 +41,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -52,6 +59,8 @@ NGCP::Schema::kamailio::Result::dbaliases
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dbaliases>
@ -116,8 +125,8 @@ NGCP::Schema::kamailio::Result::dbaliases
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bT5hN1RhXVNm4yhJtn+MrA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dialog;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dialog");
@ -90,6 +91,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -102,6 +109,8 @@ NGCP::Schema::kamailio::Result::dialog
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dialog>
@ -267,8 +276,8 @@ NGCP::Schema::kamailio::Result::dialog
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5AYfLQz7gyYiDyViW/PVNg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dialog_vars;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dialog_vars");
@ -37,6 +38,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -49,6 +56,8 @@ NGCP::Schema::kamailio::Result::dialog_vars
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dialog_vars>
@ -97,8 +106,8 @@ NGCP::Schema::kamailio::Result::dialog_vars
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bP2pmTLwAtxS4xYh0FJIGg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dialplan;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dialplan");
@ -45,6 +46,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -57,6 +64,8 @@ NGCP::Schema::kamailio::Result::dialplan
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dialplan>
@ -125,8 +134,8 @@ NGCP::Schema::kamailio::Result::dialplan
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qvkr9mDVIXr1Q73ReAcDPw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dispatcher;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dispatcher");
@ -41,6 +42,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -53,6 +60,8 @@ NGCP::Schema::kamailio::Result::dispatcher
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dispatcher>
@ -116,8 +125,8 @@ NGCP::Schema::kamailio::Result::dispatcher
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XosvpRthHa3VUEEl4Ml2BQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::dom_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("dom_preferences");
@ -48,6 +49,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -60,6 +67,8 @@ NGCP::Schema::kamailio::Result::dom_preferences
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<dom_preferences>
@ -131,8 +140,8 @@ NGCP::Schema::kamailio::Result::dom_preferences
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o4rXt1E8qR/SuXmORiSujg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::domain;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("domain");
@ -43,6 +44,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -55,6 +62,8 @@ NGCP::Schema::kamailio::Result::domain
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<domain>
@ -108,8 +117,8 @@ NGCP::Schema::kamailio::Result::domain
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yfZp8jZ7umFdhbCtVLVmHA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("domain_attrs");
@ -47,6 +48,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -59,6 +66,8 @@ NGCP::Schema::kamailio::Result::domain_attrs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<domain_attrs>
@ -128,8 +137,8 @@ NGCP::Schema::kamailio::Result::domain_attrs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UCZki7sGNJnffPgFCBRk1w
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::fax_destinations;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("fax_destinations");
@ -68,6 +69,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -80,6 +87,8 @@ NGCP::Schema::kamailio::Result::fax_destinations
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<fax_destinations>
@ -151,8 +160,8 @@ NGCP::Schema::kamailio::Result::fax_destinations
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mpgbZBxQ1XeCPdE/faCRxw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::fax_journal;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("fax_journal");
@ -83,6 +84,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -95,6 +102,8 @@ NGCP::Schema::kamailio::Result::fax_journal
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<fax_journal>
@ -202,8 +211,8 @@ NGCP::Schema::kamailio::Result::fax_journal
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FCnf8BFLuWjpffEn8Hfpcw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::fax_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("fax_preferences");
@ -56,6 +57,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("subscriber_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -68,6 +75,8 @@ NGCP::Schema::kamailio::Result::fax_preferences
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<fax_preferences>
@ -131,8 +140,8 @@ NGCP::Schema::kamailio::Result::fax_preferences
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ojAIbKqxQKuRDm1MgUe7cg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::htable;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("htable");
@ -39,6 +40,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -51,6 +58,8 @@ NGCP::Schema::kamailio::Result::htable
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<htable>
@ -107,8 +116,8 @@ NGCP::Schema::kamailio::Result::htable
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oflniBOc7IASHvNisa9JGQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::lcr_gw;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("lcr_gw");
@ -76,6 +77,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -88,6 +95,8 @@ NGCP::Schema::kamailio::Result::lcr_gw
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<lcr_gw>
@ -227,8 +236,8 @@ Related object: L<NGCP::Schema::kamailio::Result::lcr_rule_target>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vccxYatUPFzjaEtMjTY4xQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::lcr_rule;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("lcr_rule");
@ -67,6 +68,12 @@ __PACKAGE__->has_many(
{ "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 }
};
}
=encoding UTF-8
=head1 NAME
@ -79,6 +86,8 @@ NGCP::Schema::kamailio::Result::lcr_rule
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<lcr_rule>
@ -174,8 +183,8 @@ Related object: L<NGCP::Schema::kamailio::Result::lcr_rule_target>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o9WkKTyg88xWZJEJQN9c2w
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::lcr_rule_target;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("lcr_rule_target");
@ -73,6 +74,12 @@ __PACKAGE__->belongs_to(
{ 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 }
};
}
=encoding UTF-8
=head1 NAME
@ -85,6 +92,8 @@ NGCP::Schema::kamailio::Result::lcr_rule_target
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<lcr_rule_target>
@ -168,8 +177,8 @@ Related object: L<NGCP::Schema::kamailio::Result::lcr_rule>
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w8vOjgPygBXZZs857o3WwA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::location;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("location");
@ -88,6 +89,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -100,6 +107,8 @@ NGCP::Schema::kamailio::Result::location
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<location>
@ -249,8 +258,8 @@ NGCP::Schema::kamailio::Result::location
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M7R8Iv6SHVHu3q9TfZ9LkA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::location_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("location_attrs");
@ -48,6 +49,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -60,6 +67,8 @@ NGCP::Schema::kamailio::Result::location_attrs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<location_attrs>
@ -131,8 +140,8 @@ NGCP::Schema::kamailio::Result::location_attrs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZhOU46gKnIkRuPAnz96s8Q
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::mobile_push_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("mobile_push_registrations");
@ -44,6 +45,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("reg_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -56,6 +63,8 @@ NGCP::Schema::kamailio::Result::mobile_push_registrations
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<mobile_push_registrations>
@ -99,8 +108,8 @@ NGCP::Schema::kamailio::Result::mobile_push_registrations
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7gpHsIEJtAYltDjzPjo3pA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::peer_preferences;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("peer_preferences");
@ -48,6 +49,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -60,6 +67,8 @@ NGCP::Schema::kamailio::Result::peer_preferences
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<peer_preferences>
@ -131,8 +140,8 @@ NGCP::Schema::kamailio::Result::peer_preferences
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6dWo7IJvE7kE9PbUHi5Jzg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::presentity;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("presentity");
@ -48,6 +49,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -60,6 +67,8 @@ NGCP::Schema::kamailio::Result::presentity
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<presentity>
@ -145,8 +154,8 @@ NGCP::Schema::kamailio::Result::presentity
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UAIykGV4d1gAMOwvdK0ddw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::pua;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("pua");
@ -68,6 +69,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -80,6 +87,8 @@ NGCP::Schema::kamailio::Result::pua
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<pua>
@ -220,8 +229,8 @@ NGCP::Schema::kamailio::Result::pua
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t8pMgKFpJoehTl/444EIow
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::rls_presentity;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("rls_presentity");
@ -48,6 +49,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -60,6 +67,8 @@ NGCP::Schema::kamailio::Result::rls_presentity
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<rls_presentity>
@ -140,8 +149,8 @@ NGCP::Schema::kamailio::Result::rls_presentity
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ft4JN9aN8zHIf6vPR3eysg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::rls_watchers;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("rls_watchers");
@ -83,6 +84,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -95,6 +102,8 @@ NGCP::Schema::kamailio::Result::rls_watchers
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<rls_watchers>
@ -267,8 +276,8 @@ NGCP::Schema::kamailio::Result::rls_watchers
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TF7+uNKC/1okU63EyNLL+A
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::sca_subscriptions;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sca_subscriptions");
@ -59,6 +60,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -71,6 +78,8 @@ NGCP::Schema::kamailio::Result::sca_subscriptions
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<sca_subscriptions>
@ -180,8 +189,8 @@ NGCP::Schema::kamailio::Result::sca_subscriptions
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DHeADBihyUje19ti7Czw+A
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::sems_registrations;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("sems_registrations");
@ -44,6 +45,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("subscriber_id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -56,6 +63,8 @@ NGCP::Schema::kamailio::Result::sems_registrations
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<sems_registrations>
@ -113,8 +122,8 @@ NGCP::Schema::kamailio::Result::sems_registrations
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wtRpJIvcWCzW8axeo0xVSw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::silo;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("silo");
@ -58,6 +59,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -70,6 +77,8 @@ NGCP::Schema::kamailio::Result::silo
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<silo>
@ -170,8 +179,8 @@ NGCP::Schema::kamailio::Result::silo
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZyaS//ocHpb6Cd+OJHExPA
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::speed_dial;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("speed_dial");
@ -51,6 +52,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -63,6 +70,8 @@ NGCP::Schema::kamailio::Result::speed_dial
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<speed_dial>
@ -159,8 +168,8 @@ NGCP::Schema::kamailio::Result::speed_dial
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BlOzGR2/3OK+9HOrHKFzew
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::subscriber;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("subscriber");
@ -57,6 +58,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -69,6 +76,8 @@ NGCP::Schema::kamailio::Result::subscriber
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<subscriber>
@ -173,8 +182,8 @@ NGCP::Schema::kamailio::Result::subscriber
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uryabx5mytGdpba7q0VJnQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::trusted;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("trusted");
@ -37,6 +38,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -49,6 +56,8 @@ NGCP::Schema::kamailio::Result::trusted
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<trusted>
@ -97,8 +106,8 @@ NGCP::Schema::kamailio::Result::trusted
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J9Vfnyr9SNrbP8UTGunBuw
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_credentials;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_credentials");
@ -50,6 +51,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -62,6 +69,8 @@ NGCP::Schema::kamailio::Result::uid_credentials
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_credentials>
@ -137,8 +146,8 @@ NGCP::Schema::kamailio::Result::uid_credentials
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SGORmth2f0gjTrS3lq97Og
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_domain;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_domain");
@ -43,6 +44,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -55,6 +62,8 @@ NGCP::Schema::kamailio::Result::uid_domain
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_domain>
@ -108,8 +117,8 @@ NGCP::Schema::kamailio::Result::uid_domain
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9gG8pMi86/FPcmidiRo5lQ
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_domain_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_domain_attrs");
@ -47,6 +48,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -59,6 +66,8 @@ NGCP::Schema::kamailio::Result::uid_domain_attrs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_domain_attrs>
@ -128,8 +137,8 @@ NGCP::Schema::kamailio::Result::uid_domain_attrs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JKynmZNToVbzqzjYYsVLpg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_global_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_global_attrs");
@ -45,6 +46,12 @@ __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 }
};
}
=encoding UTF-8
=head1 NAME
@ -57,6 +64,8 @@ NGCP::Schema::kamailio::Result::uid_global_attrs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_global_attrs>
@ -118,8 +127,8 @@ NGCP::Schema::kamailio::Result::uid_global_attrs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v5QNjljtJbrw7+BkXSlmQg
# 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

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_uri;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_uri");
@ -44,6 +45,12 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -56,6 +63,8 @@ NGCP::Schema::kamailio::Result::uid_uri
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_uri>
@ -112,8 +121,8 @@ NGCP::Schema::kamailio::Result::uid_uri
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xZrttPOanAYFOe8QGhvMfw
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:94l86GZgnqM/F9DQeGU+Pw
# You can replace this text with custom code or comments, and it will be preserved on regeneration

@ -1,7 +1,8 @@
package NGCP::Schema::kamailio::Result::uid_uri_attrs;
use Sipwise::Base;
use MooseX::NonMoose;
our $VERSION = '1.002';
use Scalar::Util qw(blessed);
our $VERSION = '1.003';
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
@ -11,7 +12,7 @@ our $VERSION = '1.002';
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON");
__PACKAGE__->table("uid_uri_attrs");
@ -54,6 +55,12 @@ __PACKAGE__->add_unique_constraint(
"uriattrs_idx",
["username", "did", "name", "value", "scheme"],
);
sub TO_JSON {
my ($self) = @_;
return {
map { blessed($_) && $_->isa('DateTime') ? $_->datetime : $_ } %{ $self->next::method }
};
}
=encoding UTF-8
=head1 NAME
@ -66,6 +73,8 @@ NGCP::Schema::kamailio::Result::uid_uri_attrs
=item * L<DBIx::Class::InflateColumn::DateTime>
=item * L<DBIx::Class::Helper::Row::ToJSON>
=back
=head1 TABLE: C<uid_uri_attrs>
@ -152,8 +161,8 @@ NGCP::Schema::kamailio::Result::uid_uri_attrs
=cut
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-05-14 16:26:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZFfnI6XCeO7AVPolb4RU5g
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-06-27 12:51:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/A/+Vs2HDpAnXZ9ZkH5w+Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration

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

Loading…
Cancel
Save