--- /dev/null
+<?php
+use Migrations\AbstractMigration;
+
+class CreateUsers extends AbstractMigration
+{
+ /**
+ * Change Method.
+ *
+ * More information on this method is available here:
+ * http://docs.phinx.org/en/latest/migrations.html#the-change-method
+ * @return void
+ */
+ public function change()
+ {
+ $this->table('users', ['id' => false, 'primary_key' => ['id']])
+ ->addColumn('id', 'integer', ['identity' => true, 'signed' => false])
+ ->addColumn('name', 'string', ['length' => 128, 'null' => false])
+ ->addColumn('token', 'string', ['length' => 2048, 'null' => true])
+ ->addColumn('created', 'datetime')
+ ->addColumn('modified', 'datetime')
+ ->addIndex('name')
+ ->create();
+ }
+}