Question.php 528B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: guanxl
  5. * Date: 2018/3/19
  6. * Time: 18:43
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\Model;
  10. class Question extends Model
  11. {
  12. protected $table = "bs_questions";
  13. protected $primaryKey = "question_id";
  14. protected $dateFormat = 'U';
  15. const CREATED_AT = "create_time";
  16. const UPDATED_AT = "update_time";
  17. public $fillable = ["corp_id","activity_id", "category_id","question_title", "question_options", "question_answer", "is_must_answer", "status"];
  18. }