| 1 | 13 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Biblio::Zotero::DB::Schema::Result::FulltextWord; | ||
| 3 | 13 | $Biblio::Zotero::DB::Schema::Result::FulltextWord::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("fulltextWords"); | |
| 15 | |||
| 16 | |||
| 17 | 13 | __PACKAGE__->add_columns( | |
| 18 | "wordid", | ||
| 19 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 20 | "word", | ||
| 21 | { data_type => "text", is_nullable => 1 }, | ||
| 22 | ); | ||
| 23 | |||
| 24 | |||
| 25 | 13 | __PACKAGE__->set_primary_key("wordid"); | |
| 26 | |||
| 27 | |||
| 28 | 13 | __PACKAGE__->add_unique_constraint("word_unique", ["word"]); | |
| 29 | |||
| 30 | |||
| 31 | 13 | __PACKAGE__->has_many( | |
| 32 | "fulltext_item_words", | ||
| 33 | "Biblio::Zotero::DB::Schema::Result::FulltextItemWord", | ||
| 34 | { "foreign.wordid" => "self.wordid" }, | ||
| 35 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 36 | ); | ||
| 37 | |||
| 38 | |||
| 39 | 13 | __PACKAGE__->many_to_many("itemids", "fulltext_item_words", "itemid"); | |
| 40 | |||
| 41 | |||
| 42 | # Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38 | ||
| 43 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oNp29KcfqOGdexKYtNygew | ||
| 44 | |||
| 45 | |||
| 46 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 47 | 13 | 1; | |
| 48 | |||
| 49 | __END__ | ||