createTable('atg_supplier', [ 'id' => $this->primaryKey(), 'name'=>$this->string(50)->notNull()->comment('供应商名称'), 'full_name'=>$this->string(50)->notNull()->comment('供应商全称'), 'phone'=>$this->string(20)->notNull()->comment('手机号码'), 'address'=>$this->string(50)->notNull()->comment('地址'), 'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), ],$tableOptions); } /** * {@inheritdoc} */ public function down() { $this->dropTable('atg_supplier'); return true; } }