table('smart_screen_log')->setComment('智慧屏讲解记录表'); $table->addColumn('root_id', 'integer', ['limit'=> 10, 'default'=> 0, 'comment'=> '组织id']) ->addColumn('employee_id', 'integer', ['limit'=> 10, 'default'=> 0, 'comment'=> '员工id']) ->addColumn('customer_id', 'integer', ['limit'=> 10, 'default'=> 0, 'comment'=> '客户id']) ->addColumn('time', 'integer', ['limit'=> 5, 'default'=> 0, 'comment'=> '谈单时长(秒)']) ->addColumn('str', 'string', ['limit'=> 150, 'default'=> '', 'comment'=> '谈单时的扫码字符串']) ->addColumn('addtime', 'timestamp', ['default'=> 'CURRENT_TIMESTAMP', 'null'=> true]) ->addColumn('endtime', 'timestamp', ['default'=> null, 'null'=> true]) ->create(); } }