Department.php 459B

1234567891011121314151617181920212223
  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 Department extends Model
  11. {
  12. protected $table = "bs_departments";
  13. protected $primaryKey = "department_id";
  14. protected $dateFormat = 'U';
  15. const CREATED_AT = "create_time";
  16. const UPDATED_AT = "update_time";
  17. public $fillable=["corp_id","activity_id","department_name","status"];
  18. }