1use utf8; 2package Test2::Harness::UI::Schema::Result::Permission; 3 4# Created by DBIx::Class::Schema::Loader 5# DO NOT MODIFY THE FIRST PART OF THIS FILE 6 7use strict; 8use warnings; 9 10use base 'DBIx::Class::Core'; 11__PACKAGE__->load_components( 12 "InflateColumn::DateTime", 13 "InflateColumn::Serializer", 14 "InflateColumn::Serializer::JSON", 15 "Tree::AdjacencyList", 16 "UUIDColumns", 17); 18__PACKAGE__->table("permissions"); 19__PACKAGE__->add_columns( 20 "permission_id", 21 { data_type => "char", is_nullable => 0, size => 36 }, 22 "project_id", 23 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 24 "user_id", 25 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 26 "updated", 27 { 28 data_type => "timestamp", 29 datetime_undef_if_invalid => 1, 30 default_value => \"current_timestamp", 31 is_nullable => 0, 32 }, 33 "cpan_batch", 34 { data_type => "bigint", is_nullable => 1 }, 35); 36__PACKAGE__->set_primary_key("permission_id"); 37__PACKAGE__->add_unique_constraint("project_id", ["project_id", "user_id"]); 38__PACKAGE__->belongs_to( 39 "project", 40 "Test2::Harness::UI::Schema::Result::Project", 41 { project_id => "project_id" }, 42 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 43); 44__PACKAGE__->belongs_to( 45 "user", 46 "Test2::Harness::UI::Schema::Result::User", 47 { user_id => "user_id" }, 48 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 49); 50 51 52# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:31 53# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2nZ9XSHoi2F5F+nL7lte8Q 54 55 56# You can replace this text with custom code or comments, and it will be preserved on regeneration 571; 58