use utf8; package NACL::ResourceList::Schema::Result::Host; =head1 NAME NACL::ResourceList::Schema::Result::Host =cut use strict; use warnings; use base 'DBIx::Class::Core'; =head1 TABLE: C =cut __PACKAGE__->table("Host"); =head1 ACCESSORS =head2 id data_type: 'integer' is_auto_increment: 1 is_nullable: 0 =head2 name data_type: 'varchar' is_nullable: 1 size: 45 =head2 cmd_interface data_type: 'blob' is_nullable: 0 =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "name", { data_type => "varchar", is_nullable => 1, size => 245 }, "cmd_interface", { data_type => "blob", is_nullable => 0 }, ); =head1 PRIMARY KEY =over 4 =item * L =back =cut __PACKAGE__->set_primary_key("id"); =head1 UNIQUE CONSTRAINTS =head2 C =over 4 =item * L =back =cut __PACKAGE__->add_unique_constraint("name_unique", ["name"]); =head1 RELATIONS =head2 elements Type: has_many Related object: L =cut __PACKAGE__->has_many( "elements", "NACL::ResourceList::Schema::Result::Element", { "foreign.host_id" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); 1;