- columns => [
- from_table => { type => 'varchar', length => 50, not_null => 1 },
- from_id => { type => 'integer', not_null => 1 },
- to_table => { type => 'varchar', length => 50, not_null => 1 },
- to_id => { type => 'integer', not_null => 1 },
- itime => { type => 'timestamp', default => 'now()' },
- id => { type => 'serial', not_null => 1 },
- ],
+__PACKAGE__->meta->columns(
+ from_id => { type => 'integer', not_null => 1 },
+ from_table => { type => 'varchar', length => 50, not_null => 1 },
+ id => { type => 'serial', not_null => 1 },
+ itime => { type => 'timestamp', default => 'now()' },
+ to_id => { type => 'integer', not_null => 1 },
+ to_table => { type => 'varchar', length => 50, not_null => 1 },
+);