From 72fc078f65df6c44655c3e8e4c1706f1cd32a733 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 30 Aug 2013 16:39:02 +0200 Subject: [PATCH] Update documentation on new pbx changes. --- lib/NGCP/Schema/Result/contracts.pm | 6 + .../Result/provisioning_voip_subscribers.pm | 16 +- lib/NGCP/Schema/Result/voip_numbers.pm | 8 - lib/NGCP/Schema/Result/voip_pbx_groups.pm | 178 +++--------------- 4 files changed, 42 insertions(+), 166 deletions(-) diff --git a/lib/NGCP/Schema/Result/contracts.pm b/lib/NGCP/Schema/Result/contracts.pm index 9d0dd0a3..5f989961 100644 --- a/lib/NGCP/Schema/Result/contracts.pm +++ b/lib/NGCP/Schema/Result/contracts.pm @@ -336,6 +336,12 @@ Type: has_many Related object: L +=head2 voip_pbx_groups + +Type: has_many + +Related object: L + =cut diff --git a/lib/NGCP/Schema/Result/provisioning_voip_subscribers.pm b/lib/NGCP/Schema/Result/provisioning_voip_subscribers.pm index 0f95ede9..e7e589e2 100644 --- a/lib/NGCP/Schema/Result/provisioning_voip_subscribers.pm +++ b/lib/NGCP/Schema/Result/provisioning_voip_subscribers.pm @@ -272,13 +272,13 @@ NGCP::Schema::Result::provisioning_voip_subscribers is_nullable: 1 size: 40 -=head2 autoconf_displayname +=head2 is_pbx_group - data_type: 'varchar' - is_nullable: 1 - size: 255 + data_type: 'tinyint' + is_nullable: 0 + default_value: 0 -=head2 autoconf_group_id +=head2 pbx_group_id data_type: 'integer' extra: {unsigned => 1} @@ -416,6 +416,12 @@ Type: has_many Related object: L +=head2 voip_pbx_group + +Type: belongs_to + +Related object: L + =cut diff --git a/lib/NGCP/Schema/Result/voip_numbers.pm b/lib/NGCP/Schema/Result/voip_numbers.pm index 25f1faec..d1a51ec5 100644 --- a/lib/NGCP/Schema/Result/voip_numbers.pm +++ b/lib/NGCP/Schema/Result/voip_numbers.pm @@ -104,14 +104,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -__PACKAGE__->might_have( - "voip_pbx_group", - "NGCP::Schema::Result::voip_pbx_groups", - { "foreign.number_id" => "self.id" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - - sub TO_JSON { my ($self) = @_; return { diff --git a/lib/NGCP/Schema/Result/voip_pbx_groups.pm b/lib/NGCP/Schema/Result/voip_pbx_groups.pm index 4afe212a..2d6d3db3 100644 --- a/lib/NGCP/Schema/Result/voip_pbx_groups.pm +++ b/lib/NGCP/Schema/Result/voip_pbx_groups.pm @@ -95,19 +95,17 @@ sub TO_JSON { =head1 NAME -NGCP::Schema::Result::provisioning_voip_subscribers +NGCP::Schema::Result::voip_pbx_groups =head1 COMPONENTS LOADED =over 4 -=item * L - =item * L =back -=head1 TABLE: C +=head1 TABLE: C =head1 ACCESSORS @@ -118,79 +116,43 @@ NGCP::Schema::Result::provisioning_voip_subscribers is_auto_increment: 1 is_nullable: 0 -=head2 username - - data_type: 'varchar' - is_nullable: 0 - size: 127 - -=head2 domain_id +=head2 contract_id data_type: 'integer' extra: {unsigned => 1} is_foreign_key: 1 is_nullable: 0 -=head2 uuid - - data_type: 'char' - is_nullable: 0 - size: 36 - -=head2 password - - data_type: 'varchar' - is_nullable: 1 - size: 40 - -=head2 admin - - data_type: 'tinyint' - default_value: 0 - is_nullable: 0 - -=head2 account_id +=head2 subscriber_id data_type: 'integer' extra: {unsigned => 1} - is_nullable: 1 - -=head2 webusername - - data_type: 'varchar' - is_nullable: 1 - size: 127 + is_foreign_key: 1 + is_nullable: 0 -=head2 webpassword +=head2 name data_type: 'varchar' - is_nullable: 1 - size: 40 + is_nullable: 0 + size: 255 -=head2 autoconf_displayname +=head2 extension data_type: 'varchar' - is_nullable: 1 + is_nullable: 0 size: 255 -=head2 autoconf_group_id +=head2 hunt_policy - data_type: 'integer' - extra: {unsigned => 1} - is_nullable: 1 - -=head2 modify_timestamp - - data_type: 'timestamp' - datetime_undef_if_invalid: 1 - default_value: current_timestamp + data_type: 'enum' + default_value: 'serial' + extra: {list => ["serial","parallel"]} is_nullable: 0 -=head2 create_timestamp +=head2 hunt_policy_timeout - data_type: 'timestamp' - datetime_undef_if_invalid: 1 - default_value: '0000-00-00 00:00:00' + data_type: 'integer' + extra: {unsigned => 1} is_nullable: 0 =head1 PRIMARY KEY @@ -201,115 +163,25 @@ NGCP::Schema::Result::provisioning_voip_subscribers =back -=head1 UNIQUE CONSTRAINTS - -=head2 C - -=over 4 - -=item * L - -=item * L - -=back - -=head2 C - -=over 4 - -=item * L - -=back - -=head2 C - -=over 4 - -=item * L - -=item * L - -=back - =head1 RELATIONS -=head2 domain +=head2 contract Type: belongs_to -Related object: L - -=head2 voip_cc_mappings - -Type: has_many - -Related object: L - -=head2 voip_cf_destination_sets - -Type: has_many - -Related object: L - -=head2 voip_cf_mappings - -Type: has_many - -Related object: L - -=head2 voip_cf_time_sets - -Type: has_many - -Related object: L - -=head2 voip_contacts - -Type: has_many - -Related object: L - -=head2 voip_dbaliases - -Type: has_many - -Related object: L - -=head2 voip_fax_destinations - -Type: has_many - -Related object: L - -=head2 voip_fax_preference +Related object: L -Type: might_have +=head2 provisioning_voip_subscriber -Related object: L - -=head2 voip_reminder - -Type: might_have - -Related object: L - -=head2 voip_speed_dials - -Type: has_many - -Related object: L - -=head2 voip_trusted_sources - -Type: has_many +Type: belongs_to -Related object: L +Related object: L -=head2 voip_usr_preferences +=head2 provisioning_voip_subscribers Type: has_many -Related object: L +Related object: L =cut