-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Varianten: SQL-Scripte und ROSE-DB Dateien erstellt
- Loading branch information
Showing
25 changed files
with
551 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::PartParentVarientPartVarient; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::PartParentVarientPartVarient' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::TranslationVarientProperty; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::TranslationVarientProperty' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::TranslationVarientPropertyValue; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::TranslationVarientPropertyValue' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::VarientProperty; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::VarientProperty' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::VarientPropertyPart; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::VarientPropertyPart' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::VarientPropertyValue; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::VarientPropertyValue' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file has been auto-generated only because it didn't exist. | ||
# Feel free to modify it at will; it will not be overwritten automatically. | ||
|
||
package SL::DB::Manager::VarientPropertyValuePart; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Helper::Manager); | ||
|
||
sub object_class { 'SL::DB::VarientPropertyValuePart' } | ||
|
||
__PACKAGE__->make_manager_methods; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::PartParentVarientPartVarient; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('parts_parent_variant_id_parts_variant_id'); | ||
|
||
__PACKAGE__->meta->columns( | ||
parent_variant_id => { type => 'integer', not_null => 1 }, | ||
variant_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'parent_variant_id', 'variant_id' ]); | ||
|
||
__PACKAGE__->meta->unique_keys([ 'variant_id' ]); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
parent_variant => { | ||
class => 'SL::DB::Part', | ||
key_columns => { parent_variant_id => 'id' }, | ||
}, | ||
|
||
variant => { | ||
class => 'SL::DB::Part', | ||
key_columns => { variant_id => 'id' }, | ||
rel_type => 'one to one', | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::TranslationVarientProperty; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('translation_varient_properties'); | ||
|
||
__PACKAGE__->meta->columns( | ||
itime => { type => 'timestamp', default => 'now()' }, | ||
language_id => { type => 'integer', not_null => 1 }, | ||
mtime => { type => 'timestamp' }, | ||
name => { type => 'text', not_null => 1 }, | ||
varient_property_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'varient_property_id', 'language_id' ]); | ||
|
||
__PACKAGE__->meta->allow_inline_column_values(1); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
language => { | ||
class => 'SL::DB::Language', | ||
key_columns => { language_id => 'id' }, | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::TranslationVarientPropertyValue; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('translation_varient_property_values'); | ||
|
||
__PACKAGE__->meta->columns( | ||
itime => { type => 'timestamp', default => 'now()' }, | ||
language_id => { type => 'integer', not_null => 1 }, | ||
mtime => { type => 'timestamp' }, | ||
value => { type => 'text', not_null => 1 }, | ||
varient_property_value_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'varient_property_value_id', 'language_id' ]); | ||
|
||
__PACKAGE__->meta->allow_inline_column_values(1); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
language => { | ||
class => 'SL::DB::Language', | ||
key_columns => { language_id => 'id' }, | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::VarientProperty; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('variant_properties'); | ||
|
||
__PACKAGE__->meta->columns( | ||
abbreviation => { type => 'varchar', length => 4, not_null => 1 }, | ||
id => { type => 'serial', not_null => 1 }, | ||
itime => { type => 'timestamp', default => 'now()' }, | ||
mtime => { type => 'timestamp' }, | ||
name => { type => 'text', not_null => 1 }, | ||
unique_name => { type => 'text', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'id' ]); | ||
|
||
__PACKAGE__->meta->unique_keys([ 'unique_name' ]); | ||
|
||
__PACKAGE__->meta->allow_inline_column_values(1); | ||
|
||
__PACKAGE__->meta->relationships( | ||
languages => { | ||
map_class => 'SL::DB::TranslationVarientProperty', | ||
map_from => 'varient_property', | ||
map_to => 'language', | ||
type => 'many to many', | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::VarientPropertyPart; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('varient_properties_parts'); | ||
|
||
__PACKAGE__->meta->columns( | ||
part_id => { type => 'integer', not_null => 1 }, | ||
variant_property_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'part_id', 'variant_property_id' ]); | ||
|
||
__PACKAGE__->meta->unique_keys([ 'variant_property_id', 'part_id' ]); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
part => { | ||
class => 'SL::DB::Part', | ||
key_columns => { part_id => 'id' }, | ||
}, | ||
|
||
variant_property => { | ||
class => 'SL::DB::VarientProperty', | ||
key_columns => { variant_property_id => 'id' }, | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::VarientPropertyValue; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('variant_property_values'); | ||
|
||
__PACKAGE__->meta->columns( | ||
id => { type => 'serial', not_null => 1 }, | ||
itime => { type => 'timestamp', default => 'now()' }, | ||
mtime => { type => 'timestamp' }, | ||
sortkey => { type => 'integer', not_null => 1 }, | ||
value => { type => 'text', not_null => 1 }, | ||
variant_property_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'id' ]); | ||
|
||
__PACKAGE__->meta->allow_inline_column_values(1); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
variant_property => { | ||
class => 'SL::DB::VarientProperty', | ||
key_columns => { variant_property_id => 'id' }, | ||
}, | ||
); | ||
|
||
__PACKAGE__->meta->relationships( | ||
languages => { | ||
map_class => 'SL::DB::TranslationVarientPropertyValue', | ||
map_from => 'varient_property_value', | ||
map_to => 'language', | ||
type => 'many to many', | ||
}, | ||
); | ||
|
||
1; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file has been auto-generated. Do not modify it; it will be overwritten | ||
# by rose_auto_create_model.pl automatically. | ||
package SL::DB::VarientPropertyValuePart; | ||
|
||
use strict; | ||
|
||
use parent qw(SL::DB::Object); | ||
|
||
__PACKAGE__->meta->table('varient_property_values_parts'); | ||
|
||
__PACKAGE__->meta->columns( | ||
part_id => { type => 'integer', not_null => 1 }, | ||
variant_property_value_id => { type => 'integer', not_null => 1 }, | ||
); | ||
|
||
__PACKAGE__->meta->primary_key_columns([ 'part_id', 'variant_property_value_id' ]); | ||
|
||
__PACKAGE__->meta->unique_keys([ 'variant_property_value_id', 'part_id' ]); | ||
|
||
__PACKAGE__->meta->foreign_keys( | ||
part => { | ||
class => 'SL::DB::Part', | ||
key_columns => { part_id => 'id' }, | ||
}, | ||
|
||
variant_property_value => { | ||
class => 'SL::DB::VarientPropertyValue', | ||
key_columns => { variant_property_value_id => 'id' }, | ||
}, | ||
); | ||
|
||
1; | ||
; |
Oops, something went wrong.