# xman (18.05.2021 / 10:29)
I am trying to create a four colum table in my post but I don't know how.
$schema = Capsule::schema();
$schema->create(
'demo_table',
static function (Blueprint $table) {
$table->increments('id'); // id column auto incre...
$table->boolean('adm')->default(0)->index('adm');
$table->integer('time')->unsigned()->default(0)->index('time');
$table->integer('user_id')->unsigned()->default(0);
$table->string('name')->default('');
$table->text('text');
$table->bigInteger('ip')->default(0)->index('ip');
$table->string('browser')->default('');
$table->string('admin')->default('');
$table->text('otvet');
$table->integer('otime')->unsigned()->default(0);
$table->string('edit_who')->default('');
$table->integer('edit_time')->unsigned()->default(0);
$table->tinyInteger('edit_count')->unsigned()->default(0);
}
);Using Eloquent