| 1 | 13 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Biblio::Zotero::DB::Schema::Result::CustomItemType; | ||
| 3 | 13 | $Biblio::Zotero::DB::Schema::Result::CustomItemType::VERSION = '0.004'; | |
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | |||
| 8 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 13 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | |||
| 14 | 13 | __PACKAGE__->table("customItemTypes"); | |
| 15 | |||
| 16 | |||
| 17 | 13 | __PACKAGE__->add_columns( | |
| 18 | "customitemtypeid", | ||
| 19 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 20 | "typename", | ||
| 21 | { data_type => "text", is_nullable => 1 }, | ||
| 22 | "label", | ||
| 23 | { data_type => "text", is_nullable => 1 }, | ||
| 24 | "display", | ||
| 25 | { data_type => "int", default_value => 1, is_nullable => 1 }, | ||
| 26 | "icon", | ||
| 27 | { data_type => "text", is_nullable => 1 }, | ||
| 28 | ); | ||
| 29 | |||
| 30 | |||
| 31 | 13 | __PACKAGE__->set_primary_key("customitemtypeid"); | |
| 32 | |||
| 33 | |||
| 34 | 13 | __PACKAGE__->has_many( | |
| 35 | "custom_base_field_mappings", | ||
| 36 | "Biblio::Zotero::DB::Schema::Result::CustomBaseFieldMapping", | ||
| 37 | { "foreign.customitemtypeid" => "self.customitemtypeid" }, | ||
| 38 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 39 | ); | ||
| 40 | |||
| 41 | |||
| 42 | 13 | __PACKAGE__->has_many( | |
| 43 | "custom_item_type_fields", | ||
| 44 | "Biblio::Zotero::DB::Schema::Result::CustomItemTypeField", | ||
| 45 | { "foreign.customitemtypeid" => "self.customitemtypeid" }, | ||
| 46 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 47 | ); | ||
| 48 | |||
| 49 | |||
| 50 | # Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38 | ||
| 51 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FNBrVKP+GSxz5V03FwMupQ | ||
| 52 | |||
| 53 | |||
| 54 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 55 | 13 | 1; | |
| 56 | |||
| 57 | __END__ | ||