« lib/Rapi/Blog/DB/Result/PreauthActionType.pm
↑ Summary
lib/Rapi/Blog/DB/Result/TrkSectionPost.pm »
| 1 | use utf8; | ||
| 2 | package Rapi::Blog::DB::Result::PreauthEventType; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | use strict; | ||
| 8 | use warnings; | ||
| 9 | |||
| 10 | use Moose; | ||
| 11 | use MooseX::NonMoose; | ||
| 12 | use MooseX::MarkAsMethods autoclean => 1; | ||
| 13 | extends 'DBIx::Class::Core'; | ||
| 14 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 15 | __PACKAGE__->table("preauth_event_type"); | ||
| 16 | __PACKAGE__->add_columns( | ||
| 17 | "id", | ||
| 18 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 19 | "name", | ||
| 20 | { data_type => "varchar", is_nullable => 0, size => 16 }, | ||
| 21 | "description", | ||
| 22 | { | ||
| 23 | data_type => "varchar", | ||
| 24 | default_value => \"null", | ||
| 25 | is_nullable => 1, | ||
| 26 | size => 1024, | ||
| 27 | }, | ||
| 28 | ); | ||
| 29 | __PACKAGE__->set_primary_key("id"); | ||
| 30 | __PACKAGE__->add_unique_constraint("name_unique", ["name"]); | ||
| 31 | __PACKAGE__->has_many( | ||
| 32 | "preauth_action_events", | ||
| 33 | "Rapi::Blog::DB::Result::PreauthActionEvent", | ||
| 34 | { "foreign.type_id" => "self.id" }, | ||
| 35 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 36 | ); | ||
| 37 | |||
| 38 | |||
| 39 | # Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-28 02:04:56 | ||
| 40 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/Gus3G3P3mB/aXm0iEk1SQ | ||
| 41 | |||
| 42 | |||
| 43 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 44 | __PACKAGE__->meta->make_immutable; | ||
| 45 | 1; |