view release on metacpan or search on metacpan
lib/Rapi/Blog/DB/Result/Category.pm view on Meta::CPAN
default_value => \"null",
is_nullable => 1,
size => 1024,
},
);
__PACKAGE__->set_primary_key("name");
__PACKAGE__->has_many(
"post_categories",
"Rapi::Blog::DB::Result::PostCategory",
{ "foreign.category_name" => "self.name" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-08-20 20:36:08
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9R1QEXzoBCbh4hJhMmAztw
use RapidApp::Util ':all';
use Rapi::Blog::Util;
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
lib/Rapi/Blog/DB/Result/Comment.pm view on Meta::CPAN
"ts",
{ data_type => "datetime", is_nullable => 0 },
"body",
{ data_type => "text", default_value => "", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
"comments",
"Rapi::Blog::DB::Result::Comment",
{ "foreign.parent_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"parent",
"Rapi::Blog::DB::Result::Comment",
{ id => "parent_id" },
{
is_deferrable => 0,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
lib/Rapi/Blog/DB/Result/Hit.pm view on Meta::CPAN
is_deferrable => 0,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
},
);
__PACKAGE__->has_many(
"preauth_action_events",
"Rapi::Blog::DB::Result::PreauthActionEvent",
{ "foreign.hit_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-28 02:04:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c1TGt5mrSyCobHmzHF8/Yg
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
lib/Rapi/Blog/DB/Result/Post.pm view on Meta::CPAN
__PACKAGE__->belongs_to(
"author",
"Rapi::Blog::DB::Result::User",
{ id => "author_id" },
{ is_deferrable => 0, on_delete => "RESTRICT", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"comments",
"Rapi::Blog::DB::Result::Comment",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"creator",
"Rapi::Blog::DB::Result::User",
{ id => "creator_id" },
{ is_deferrable => 0, on_delete => "RESTRICT", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"hits",
"Rapi::Blog::DB::Result::Hit",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"post_categories",
"Rapi::Blog::DB::Result::PostCategory",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"post_tags",
"Rapi::Blog::DB::Result::PostTag",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"section",
"Rapi::Blog::DB::Result::Section",
{ id => "section_id" },
{
is_deferrable => 0,
join_type => "LEFT",
on_delete => "SET DEFAULT",
on_update => "CASCADE",
},
);
__PACKAGE__->has_many(
"trk_section_posts",
"Rapi::Blog::DB::Result::TrkSectionPost",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"updater",
"Rapi::Blog::DB::Result::User",
{ id => "updater_id" },
{ is_deferrable => 0, on_delete => "RESTRICT", on_update => "CASCADE" },
);
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-10-04 18:42:02
lib/Rapi/Blog/DB/Result/Post.pm view on Meta::CPAN
__PACKAGE__->load_components('+RapidApp::DBIC::Component::TableSpec');
__PACKAGE__->TableSpec_m2m( categories => "post_categories", 'category_name');
__PACKAGE__->apply_TableSpec;
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
__PACKAGE__->has_many(
"direct_comments",
"Rapi::Blog::DB::Result::Comment",
{ "foreign.post_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0, where => { parent_id => undef } },
);
__PACKAGE__->many_to_many( 'tags', 'post_tags', 'tag_name' );
use RapidApp::Util ':all';
use Rapi::Blog::Util;
use HTML::Strip;
sub schema { (shift)->result_source->schema }
# This relies on us having been loaded via RapidApp::Util::Role::ModelDBIC
lib/Rapi/Blog/DB/Result/PreauthAction.pm view on Meta::CPAN
{ data_type => "varchar", is_nullable => 0, size => 128 },
"json_data",
{ data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("auth_key_unique", ["auth_key"]);
__PACKAGE__->has_many(
"preauth_action_events",
"Rapi::Blog::DB::Result::PreauthActionEvent",
{ "foreign.action_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"type",
"Rapi::Blog::DB::Result::PreauthActionType",
{ name => "type" },
{ is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->belongs_to(
"user",
"Rapi::Blog::DB::Result::User",
lib/Rapi/Blog/DB/Result/PreauthActionType.pm view on Meta::CPAN
default_value => \"null",
is_nullable => 1,
size => 1024,
},
);
__PACKAGE__->set_primary_key("name");
__PACKAGE__->has_many(
"preauth_actions",
"Rapi::Blog::DB::Result::PreauthAction",
{ "foreign.type" => "self.name" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-27 23:38:05
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P8LCFp0JKZ2TEWFTn9Wl9g
use RapidApp::Util ':all';
use Rapi::Blog::Util;
use String::CamelCase qw/camelize/;
lib/Rapi/Blog/DB/Result/PreauthEventType.pm view on Meta::CPAN
is_nullable => 1,
size => 1024,
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("name_unique", ["name"]);
__PACKAGE__->has_many(
"preauth_action_events",
"Rapi::Blog::DB::Result::PreauthActionEvent",
{ "foreign.type_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-28 02:04:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/Gus3G3P3mB/aXm0iEk1SQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
lib/Rapi/Blog/DB/Result/Section.pm view on Meta::CPAN
is_deferrable => 0,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
},
);
__PACKAGE__->has_many(
"posts",
"Rapi::Blog::DB::Result::Post",
{ "foreign.section_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"sections",
"Rapi::Blog::DB::Result::Section",
{ "foreign.parent_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"trk_section_posts",
"Rapi::Blog::DB::Result::TrkSectionPost",
{ "foreign.section_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"trk_section_sections_sections",
"Rapi::Blog::DB::Result::TrkSectionSection",
{ "foreign.section_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"trk_section_sections_subsections",
"Rapi::Blog::DB::Result::TrkSectionSection",
{ "foreign.subsection_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-10-04 18:42:02
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9NPmvsrCunpxPOYQuwBskg
use RapidApp::Util ':all';
use Rapi::Blog::Util;
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
lib/Rapi/Blog/DB/Result/Tag.pm view on Meta::CPAN
__PACKAGE__->table("tag");
__PACKAGE__->add_columns(
"name",
{ data_type => "varchar", is_nullable => 0, size => 64 },
);
__PACKAGE__->set_primary_key("name");
__PACKAGE__->has_many(
"post_tags",
"Rapi::Blog::DB::Result::PostTag",
{ "foreign.tag_name" => "self.name" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-05-26 13:35:23
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:C93siCyHQ1D1co2F2bqQhg
use RapidApp::Util ':all';
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
lib/Rapi/Blog/DB/Result/User.pm view on Meta::CPAN
"disabled",
{ data_type => "boolean", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("full_name_unique", ["full_name"]);
__PACKAGE__->add_unique_constraint("username_unique", ["username"]);
__PACKAGE__->has_many(
"comments",
"Rapi::Blog::DB::Result::Comment",
{ "foreign.user_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"post_authors",
"Rapi::Blog::DB::Result::Post",
{ "foreign.author_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"post_creators",
"Rapi::Blog::DB::Result::Post",
{ "foreign.creator_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"post_updaters",
"Rapi::Blog::DB::Result::Post",
{ "foreign.updater_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"preauth_actions",
"Rapi::Blog::DB::Result::PreauthAction",
{ "foreign.user_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-27 23:38:05
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2klRAJnak1zgM9iKuGRQCQ
use RapidApp::Util ':all';
__PACKAGE__->load_components('+RapidApp::DBIC::Component::TableSpec');
__PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');