use ORM::ActiveRecord::Schema::Migration;

class CreateUsers is Migration {
  method up {
    self.create-table: 'users', [
      fname => { :string, limit => 32 },
      lname => { :string, limit => 32 },
      email => { :string, limit => 128 },
      role  => { :string, limit => 32 },
    ];
    self.add-timestamps: 'users';
  }

  method down {
    self.drop-table: 'users';
  }
}
