output_position => { type => 'integer', default => 1, not_null => 1 },
itime => { type => 'timestamp', default => 'now()', not_null => 1 },
mtime => { type => 'timestamp' },
+ is_flagged => { type => 'boolean', default => 'false', not_null => 1 },
],
primary_key_columns => [ 'id' ],
allow_inline_column_values => 1,
+
+ foreign_keys => [
+ requirement_spec => {
+ class => 'SL::DB::RequirementSpec',
+ key_columns => { requirement_spec_id => 'id' },
+ },
+ ],
);
1;
use SL::DB::Helper::ActsAsList;
use SL::Locale::String;
-__PACKAGE__->meta->add_relationships(
- requirement_spec => {
- type => 'one to many',
- class => 'SL::DB::RequirementSpec',
- column_map => { requirement_spec_id => 'id' },
- },
-);
-
__PACKAGE__->meta->initialize;
__PACKAGE__->configure_acts_as_list(group_by => [qw(requirement_spec_id output_position)]);
text TEXT,
position INTEGER NOT NULL,
output_position INTEGER NOT NULL DEFAULT 1,
+ is_flagged BOOLEAN NOT NULL DEFAULT FALSE,
itime TIMESTAMP NOT NULL DEFAULT now(),
mtime TIMESTAMP,