- columns => [
- id => { type => 'serial', not_null => 1 },
- name => { type => 'text', not_null => 1 },
- type => { type => 'varchar', length => 20, not_null => 1 },
- is_default => { type => 'boolean', default => 'false' },
- login => { type => 'text' },
- ],
-
- primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->columns(
+ id => { type => 'serial', not_null => 1 },
+ is_default => { type => 'boolean', default => 'false' },
+ login => { type => 'text' },
+ name => { type => 'text', not_null => 1 },
+ type => { type => 'varchar', length => 20, not_null => 1 },