view release on metacpan or search on metacpan
lib/Biblio/Zotero/DB/Schema/Result/Collection.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("collectionid");
__PACKAGE__->add_unique_constraint("libraryid_key_unique", ["libraryid", "key"]);
__PACKAGE__->has_many(
"collection_items",
"Biblio::Zotero::DB::Schema::Result::CollectionItem",
{ "foreign.collectionid" => "self.collectionid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"collections",
"Biblio::Zotero::DB::Schema::Result::Collection",
{ "foreign.parentcollectionid" => "self.collectionid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"parentcollectionid",
"Biblio::Zotero::DB::Schema::Result::Collection",
{ collectionid => "parentcollectionid" },
{
is_deferrable => 0,
join_type => "LEFT",
lib/Biblio/Zotero/DB/Schema/Result/Creator.pm view on Meta::CPAN
"Biblio::Zotero::DB::Schema::Result::CreatorData",
{ creatordataid => "creatordataid" },
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
);
__PACKAGE__->has_many(
"item_creators",
"Biblio::Zotero::DB::Schema::Result::ItemCreator",
{ "foreign.creatorid" => "self.creatorid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mwOJUSAgJ5GdL3mOqvtqKw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/CreatorData.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("creatordataid");
__PACKAGE__->has_many(
"creators",
"Biblio::Zotero::DB::Schema::Result::Creator",
{ "foreign.creatordataid" => "self.creatordataid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:77GVwSEM4nxAXvVUWPJvDA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/CreatorType.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("creatortypeid");
__PACKAGE__->has_many(
"item_creators",
"Biblio::Zotero::DB::Schema::Result::ItemCreator",
{ "foreign.creatortypeid" => "self.creatortypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_type_creator_types",
"Biblio::Zotero::DB::Schema::Result::ItemTypeCreatorType",
{ "foreign.creatortypeid" => "self.creatortypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SWeXs7jA21XVReAIWrm9Eg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/CustomField.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("customfieldid");
__PACKAGE__->has_many(
"custom_base_field_mappings",
"Biblio::Zotero::DB::Schema::Result::CustomBaseFieldMapping",
{ "foreign.customfieldid" => "self.customfieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"custom_item_type_fields",
"Biblio::Zotero::DB::Schema::Result::CustomItemTypeField",
{ "foreign.customfieldid" => "self.customfieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OowNMoDWmV2u4lqLPRPyKA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/CustomItemType.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("customitemtypeid");
__PACKAGE__->has_many(
"custom_base_field_mappings",
"Biblio::Zotero::DB::Schema::Result::CustomBaseFieldMapping",
{ "foreign.customitemtypeid" => "self.customitemtypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"custom_item_type_fields",
"Biblio::Zotero::DB::Schema::Result::CustomItemTypeField",
{ "foreign.customitemtypeid" => "self.customitemtypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FNBrVKP+GSxz5V03FwMupQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/Field.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("fieldid");
__PACKAGE__->has_many(
"base_field_mappings_basefieldids",
"Biblio::Zotero::DB::Schema::Result::BaseFieldMapping",
{ "foreign.basefieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"base_field_mappings_fieldids",
"Biblio::Zotero::DB::Schema::Result::BaseFieldMapping",
{ "foreign.fieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"custom_base_field_mappings",
"Biblio::Zotero::DB::Schema::Result::CustomBaseFieldMapping",
{ "foreign.basefieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"custom_item_type_fields",
"Biblio::Zotero::DB::Schema::Result::CustomItemTypeField",
{ "foreign.fieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"fieldformatid",
"Biblio::Zotero::DB::Schema::Result::FieldFormat",
{ fieldformatid => "fieldformatid" },
{
is_deferrable => 0,
join_type => "LEFT",
on_delete => "NO ACTION",
on_update => "NO ACTION",
},
);
__PACKAGE__->has_many(
"item_datas",
"Biblio::Zotero::DB::Schema::Result::ItemData",
{ "foreign.fieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_type_fields",
"Biblio::Zotero::DB::Schema::Result::ItemTypeField",
{ "foreign.fieldid" => "self.fieldid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aBezepkeZs0zrI3xTKTpoA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/FieldFormat.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("fieldformatid");
__PACKAGE__->has_many(
"fields",
"Biblio::Zotero::DB::Schema::Result::Field",
{ "foreign.fieldformatid" => "self.fieldformatid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Mqu1YGxo4zvHNv3IEEOadA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/FileType.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("filetypeid");
__PACKAGE__->add_unique_constraint("filetype_unique", ["filetype"]);
__PACKAGE__->has_many(
"file_type_mime_types",
"Biblio::Zotero::DB::Schema::Result::FileTypeMimeType",
{ "foreign.filetypeid" => "self.filetypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q3LfBNZATFhcUdoOt4aepw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/FulltextWord.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("wordid");
__PACKAGE__->add_unique_constraint("word_unique", ["word"]);
__PACKAGE__->has_many(
"fulltext_item_words",
"Biblio::Zotero::DB::Schema::Result::FulltextItemWord",
{ "foreign.wordid" => "self.wordid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->many_to_many("itemids", "fulltext_item_words", "itemid");
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oNp29KcfqOGdexKYtNygew
lib/Biblio/Zotero/DB/Schema/Result/Item.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("itemid");
__PACKAGE__->add_unique_constraint("libraryid_key_unique", ["libraryid", "key"]);
__PACKAGE__->has_many(
"collection_items",
"Biblio::Zotero::DB::Schema::Result::CollectionItem",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"fulltext_item",
"Biblio::Zotero::DB::Schema::Result::FulltextItem",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"fulltext_item_words",
"Biblio::Zotero::DB::Schema::Result::FulltextItemWord",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"item_attachments_itemid",
"Biblio::Zotero::DB::Schema::Result::ItemAttachment",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_attachments_sourceitemids",
"Biblio::Zotero::DB::Schema::Result::ItemAttachment",
{ "foreign.sourceitemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_creators",
"Biblio::Zotero::DB::Schema::Result::ItemCreator",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_datas",
"Biblio::Zotero::DB::Schema::Result::ItemData",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->might_have(
"item_notes_itemid",
"Biblio::Zotero::DB::Schema::Result::ItemNote",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_notes_sourceitemids",
"Biblio::Zotero::DB::Schema::Result::ItemNote",
{ "foreign.sourceitemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_see_also_itemids",
"Biblio::Zotero::DB::Schema::Result::ItemSeeAlso",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_see_also_linkeditemids",
"Biblio::Zotero::DB::Schema::Result::ItemSeeAlso",
{ "foreign.linkeditemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_tags",
"Biblio::Zotero::DB::Schema::Result::ItemTag",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"libraryid",
"Biblio::Zotero::DB::Schema::Result::Library",
{ libraryid => "libraryid" },
{
is_deferrable => 0,
join_type => "LEFT",
lib/Biblio/Zotero/DB/Schema/Result/Item.pm view on Meta::CPAN
sub fields {
my ($self) = @_;
$self->item_datas_rs->fields_for_itemid($self->itemid);
}
__PACKAGE__->has_many(
"stored_item_attachments_sourceitemids",
"Biblio::Zotero::DB::Schema::Result::StoredItemAttachment",
{ "foreign.sourceitemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"trash_item_attachments_sourceitemids",
"Biblio::Zotero::DB::Schema::Result::TrashItemAttachment",
{ "foreign.sourceitemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
1;
__END__
=pod
=encoding UTF-8
lib/Biblio/Zotero/DB/Schema/Result/ItemAttachment.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("itemid");
__PACKAGE__->has_many(
"annotations",
"Biblio::Zotero::DB::Schema::Result::Annotation",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"highlights",
"Biblio::Zotero::DB::Schema::Result::Highlight",
{ "foreign.itemid" => "self.itemid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"itemid",
"Biblio::Zotero::DB::Schema::Result::Item",
{ itemid => "itemid" },
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
);
lib/Biblio/Zotero/DB/Schema/Result/ItemDataValue.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("valueid");
__PACKAGE__->add_unique_constraint("value_unique", ["value"]);
__PACKAGE__->has_many(
"item_datas",
"Biblio::Zotero::DB::Schema::Result::ItemData",
{ "foreign.valueid" => "self.valueid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ta4mnXiDYmyA+kw5wpEelQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/ItemType.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("itemtypeid");
__PACKAGE__->has_many(
"base_field_mappings",
"Biblio::Zotero::DB::Schema::Result::BaseFieldMapping",
{ "foreign.itemtypeid" => "self.itemtypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_type_creator_types",
"Biblio::Zotero::DB::Schema::Result::ItemTypeCreatorType",
{ "foreign.itemtypeid" => "self.itemtypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"item_type_fields",
"Biblio::Zotero::DB::Schema::Result::ItemTypeField",
{ "foreign.itemtypeid" => "self.itemtypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9neWrGI+M7r0VExseuNPPw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/Library.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("libraryid");
__PACKAGE__->might_have(
"group",
"Biblio::Zotero::DB::Schema::Result::Group",
{ "foreign.libraryid" => "self.libraryid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"items",
"Biblio::Zotero::DB::Schema::Result::Item",
{ "foreign.libraryid" => "self.libraryid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:97town+aPZwbrbi2nYaQZQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/Proxy.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("proxyid");
__PACKAGE__->has_many(
"proxy_hosts",
"Biblio::Zotero::DB::Schema::Result::ProxyHost",
{ "foreign.proxyid" => "self.proxyid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GMlKwJS8GVtU4snBIaXjmw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/SavedSearch.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("savedsearchid");
__PACKAGE__->add_unique_constraint("libraryid_key_unique", ["libraryid", "key"]);
__PACKAGE__->has_many(
"saved_search_conditions",
"Biblio::Zotero::DB::Schema::Result::SavedSearchCondition",
{ "foreign.savedsearchid" => "self.savedsearchid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tBpgaZNfOkTpszoJb8m94Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/SyncObjectType.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("syncobjecttypeid");
__PACKAGE__->has_many(
"sync_delete_logs",
"Biblio::Zotero::DB::Schema::Result::SyncDeleteLog",
{ "foreign.syncobjecttypeid" => "self.syncobjecttypeid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XdxxGgZFy8Y3LjNPjrXAgw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/Tag.pm view on Meta::CPAN
__PACKAGE__->add_unique_constraint("libraryid_key_unique", ["libraryid", "key"]);
__PACKAGE__->add_unique_constraint("libraryid_name_type_unique", ["libraryid", "name", "type"]);
__PACKAGE__->has_many(
"item_tags",
"Biblio::Zotero::DB::Schema::Result::ItemTag",
{ "foreign.tagid" => "self.tagid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->many_to_many("itemids", "item_tags", "itemid");
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KZ6mzhv66OnDC6I6Qr/EwQ
lib/Biblio/Zotero/DB/Schema/Result/Transaction.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("transactionid");
__PACKAGE__->has_many(
"transaction_logs",
"Biblio::Zotero::DB::Schema::Result::TransactionLog",
{ "foreign.transactionid" => "self.transactionid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6iOwQYg25n+0AL0zAmGH9A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
lib/Biblio/Zotero/DB/Schema/Result/User.pm view on Meta::CPAN
);
__PACKAGE__->set_primary_key("userid");
__PACKAGE__->has_many(
"group_items_createdbyuserids",
"Biblio::Zotero::DB::Schema::Result::GroupItem",
{ "foreign.createdbyuserid" => "self.userid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"group_items_lastmodifiedbyuserids",
"Biblio::Zotero::DB::Schema::Result::GroupItem",
{ "foreign.lastmodifiedbyuserid" => "self.userid" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NjY6s58eeAbm7PnMru0l2w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;