- columns => [
- user_id => { type => 'integer', not_null => 1 },
- cfg_key => { type => 'text', not_null => 1 },
- cfg_value => { type => 'text' },
- ],
+__PACKAGE__->meta->columns(
+ cfg_key => { type => 'text', not_null => 1 },
+ cfg_value => { type => 'text' },
+ user_id => { type => 'integer', not_null => 1 },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'user_id', 'cfg_key' ]);