- columns => [
- tag => { type => 'text', not_null => 1 },
- login => { type => 'text' },
- itime => { type => 'timestamp', default => 'now()' },
- ],
+__PACKAGE__->meta->columns(
+ itime => { type => 'timestamp', default => 'now()' },
+ login => { type => 'text' },
+ tag => { type => 'text', not_null => 1 },
+);