__PACKAGE__->load_components;
__PACKAGE__->table(
"config"
);
__PACKAGE__->add_columns(
"id"
,
{
data_type
=>
"integer"
,
is_nullable
=> 0 },
"parent_id"
,
{
data_type
=>
"integer"
,
default_value
=> 0,
is_nullable
=> 0 },
"name"
,
{
data_type
=>
"varchar"
,
is_nullable
=> 0,
size
=>
undef
},
"value"
,
{
data_type
=>
"varchar"
,
is_nullable
=> 1,
size
=>
undef
},
);
__PACKAGE__->set_primary_key(
"id"
);
__PACKAGE__->add_unique_constraint(
"name_parent_unique"
, [
"name"
,
"parent_id"
]);
__PACKAGE__->belongs_to(
"parent"
,
"Schema::Config::Result::Config"
,
{
id
=>
"parent_id"
},
);
__PACKAGE__->meta->make_immutable;
1;