« blib/lib/App/Netdisco/DB/Result.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/AccessControlListMap.pm »
| 1 | package App::Netdisco::DB::Result::AccessControlList; | ||
| 2 | use utf8; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use base 'App::Netdisco::DB::Result'; | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | App::Netdisco::DB::Result::AccessControlList | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | Models an ACL in the database. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | __PACKAGE__->table('access_control_list'); | ||
| 19 | |||
| 20 | __PACKAGE__->add_columns( | ||
| 21 | "id", | ||
| 22 | { data_type => "integer", is_nullable => 0, is_auto_increment => 1 }, | ||
| 23 | "rules", | ||
| 24 | { data_type => "text[]", is_nullable => 0 }, | ||
| 25 | ); | ||
| 26 | |||
| 27 | __PACKAGE__->set_primary_key("id"); | ||
| 28 | |||
| 29 | 1; |