EventOverview.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "event_overview".
  6. *
  7. * @property int $id
  8. * @property int|null $accident_id 案例ID
  9. * @property int|null $start_time 发生时间
  10. * @property int|null $is_important
  11. * @property string|null $important_content
  12. * @property string|null $content 事件概览
  13. * @property int|null $delete_time 删除时间
  14. * @property string|null $assess 评估
  15. * @property string|null $assess_two 评估
  16. * @property string|null|array $source_data
  17. */
  18. class EventOverview extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return 'event_overview';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. // [['accident_id', 'start_time'], 'integer'],
  34. // [['content'], 'string', 'max' => 512],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'accident_id' => '案例ID',
  45. 'start_time' => 'Start Time',
  46. 'content' => 'Content',
  47. ];
  48. }
  49. }