| 1 | package OpusVL::AppKit::Schema::AppKitAuthDB::Result::RoleAllowed; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | |||
| 9 | use base 'DBIx::Class::Core'; | ||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | __PACKAGE__->table("roles_allowed"); | ||
| 14 | |||
| 15 | |||
| 16 | __PACKAGE__->add_columns( | ||
| 17 | "role", | ||
| 18 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||
| 19 | "role_allowed", | ||
| 20 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||
| 21 | ); | ||
| 22 | __PACKAGE__->set_primary_key("role", "role_allowed"); | ||
| 23 | |||
| 24 | |||
| 25 | __PACKAGE__->belongs_to( | ||
| 26 | "role_allowed", | ||
| 27 | "OpusVL::AppKit::Schema::AppKitAuthDB::Result::Role", | ||
| 28 | { id => "role_allowed" }, | ||
| 29 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 30 | ); | ||
| 31 | |||
| 32 | |||
| 33 | __PACKAGE__->belongs_to( | ||
| 34 | "role", | ||
| 35 | "OpusVL::AppKit::Schema::AppKitAuthDB::Result::Role", | ||
| 36 | { id => "role" }, | ||
| 37 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 38 | ); | ||
| 39 | |||
| 40 | |||
| 41 | # Created by DBIx::Class::Schema::Loader v0.07002 @ 2011-01-10 11:58:33 | ||
| 42 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fm3ouMScUWfvv8UV1adWXA | ||
| 43 | |||
| 44 | |||
| 45 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 46 | 1; | ||
| 47 | |||
| 48 | __END__ |