Osgood::Server::Model::Action - Osgood::Server::Model::Action documentation


Osgood-Server documentation Contained in the Osgood-Server distribution.

Index


Code Index:

NAME

Top

Osgood::Server::Model::Action

DESCRIPTION

Top

Actions are a component of events. The "verb" of the event.

DATABASE

Top

See 'actions' table for all methods.

COPYRIGHT AND LICENSE

Top


Osgood-Server documentation Contained in the Osgood-Server distribution.
package Osgood::Server::Model::Action;
use strict;

use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('actions');
__PACKAGE__->add_columns(
		action_id  => { data_type => 'bigint', is_auto_increment => 1 }, 
		name       => { data_type => 'varchar', size => 64 }
);
__PACKAGE__->set_primary_key('action_id');
__PACKAGE__->has_many(events => 'Osgood::Server::Model::Event', 'action_id' );

1;