table('product_skus', ['id' => false, 'primary_key' => ['id']]); $table->addColumn('id', 'uuid', [ 'default' => null, 'null' => false, ]); $table->addColumn('product_id', 'uuid', [ 'default' => null, 'null' => false, ]); $table->addColumn('sku', 'string', [ 'default' => null, 'limit' => 255, 'null' => false, ]); $table->addColumn('barcode', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]); $table->addColumn('price', 'decimal', [ 'default' => null, 'precision' => 15, 'scale' => 6, 'null' => true, ]); $table->addColumn('cost', 'decimal', [ 'default' => null, 'precision' => 15, 'scale' => 6, 'null' => true, ]); $table->addColumn('created', 'datetime', [ 'default' => null, 'null' => false, ]); $table->addColumn('modified', 'datetime', [ 'default' => null, 'null' => true, ]); $table->addColumn('deleted', 'datetime', [ 'default' => null, 'null' => true, ]); $table->create(); } }