$table->bigIncrements('id'); ID 自动增量,使用相当于「big integer」类型 $table->bigInteger('votes'); 相当于 BIGINT 类型 $table->binary('data'); 相当于 BLOB 类型 $table->boolean('confirmed'); 相当于 BOOLEAN 类型 $table->char('name', 4); 相当于 CHAR 类型,并带有长度 $table->date('created_at
laravel 创建表 字段列举
最新推荐文章于 2021-12-16 17:36:56 发布