« blib/lib/App/Netdisco/DB/Result/Manufacturer.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/Node.pm »
| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::NetmapPositions; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use base 'App::Netdisco::DB::Result'; | ||
| 8 | __PACKAGE__->table("netmap_positions"); | ||
| 9 | __PACKAGE__->add_columns( | ||
| 10 | "id", | ||
| 11 | { data_type => "integer", is_nullable => 0, is_auto_increment => 1 }, | ||
| 12 | "device", | ||
| 13 | { data_type => "inet", is_nullable => 1 }, | ||
| 14 | "host_groups", | ||
| 15 | { data_type => "text[]", is_nullable => 0 }, | ||
| 16 | "locations", | ||
| 17 | { data_type => "text[]", is_nullable => 0 }, | ||
| 18 | "vlan", | ||
| 19 | { data_type => "integer", is_nullable => 0, default => 0 }, | ||
| 20 | "depth", | ||
| 21 | { data_type => "integer", is_nullable => 0, default => 0 }, | ||
| 22 | "positions", | ||
| 23 | { data_type => "text", is_nullable => 0 }, | ||
| 24 | ); | ||
| 25 | |||
| 26 | __PACKAGE__->set_primary_key("id"); | ||
| 27 | |||
| 28 | 1; |