| 1 | 13 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Biblio::Zotero::DB::Schema::Result::CustomItemTypeField; | ||
| 3 | 13 | $Biblio::Zotero::DB::Schema::Result::CustomItemTypeField::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("customItemTypeFields"); | |
| 15 | |||
| 16 | |||
| 17 | 13 | __PACKAGE__->add_columns( | |
| 18 | "customitemtypeid", | ||
| 19 | { data_type => "int", is_foreign_key => 1, is_nullable => 0 }, | ||
| 20 | "fieldid", | ||
| 21 | { data_type => "int", is_foreign_key => 1, is_nullable => 1 }, | ||
| 22 | "customfieldid", | ||
| 23 | { data_type => "int", is_foreign_key => 1, is_nullable => 1 }, | ||
| 24 | "hide", | ||
| 25 | { data_type => "int", is_nullable => 0 }, | ||
| 26 | "orderindex", | ||
| 27 | { data_type => "int", is_nullable => 0 }, | ||
| 28 | ); | ||
| 29 | |||
| 30 | |||
| 31 | 13 | __PACKAGE__->set_primary_key("customitemtypeid", "orderindex"); | |
| 32 | |||
| 33 | |||
| 34 | 13 | __PACKAGE__->belongs_to( | |
| 35 | "customfieldid", | ||
| 36 | "Biblio::Zotero::DB::Schema::Result::CustomField", | ||
| 37 | { customfieldid => "customfieldid" }, | ||
| 38 | { | ||
| 39 | is_deferrable => 0, | ||
| 40 | join_type => "LEFT", | ||
| 41 | on_delete => "NO ACTION", | ||
| 42 | on_update => "NO ACTION", | ||
| 43 | }, | ||
| 44 | ); | ||
| 45 | |||
| 46 | |||
| 47 | 13 | __PACKAGE__->belongs_to( | |
| 48 | "customitemtypeid", | ||
| 49 | "Biblio::Zotero::DB::Schema::Result::CustomItemType", | ||
| 50 | { customitemtypeid => "customitemtypeid" }, | ||
| 51 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 52 | ); | ||
| 53 | |||
| 54 | |||
| 55 | 13 | __PACKAGE__->belongs_to( | |
| 56 | "fieldid", | ||
| 57 | "Biblio::Zotero::DB::Schema::Result::Field", | ||
| 58 | { fieldid => "fieldid" }, | ||
| 59 | { | ||
| 60 | is_deferrable => 0, | ||
| 61 | join_type => "LEFT", | ||
| 62 | on_delete => "NO ACTION", | ||
| 63 | on_update => "NO ACTION", | ||
| 64 | }, | ||
| 65 | ); | ||
| 66 | |||
| 67 | |||
| 68 | # Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38 | ||
| 69 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J7vZwhA6IbKSqu9f0Y6ZMw | ||
| 70 | |||
| 71 | |||
| 72 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 73 | 13 | 1; | |
| 74 | |||
| 75 | __END__ | ||