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