EventSourceData.php 908 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "event_source_data".
  6. *
  7. * @property int $id
  8. * @property int|null $accident_id
  9. * @property string|null $file_name
  10. * @property string|null $url
  11. * @property int|null $update_time
  12. * @property int|null $delete_time
  13. */
  14. class EventSourceData extends \yii\db\ActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function tableName()
  20. {
  21. return 'event_source_data';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules()
  27. {
  28. return [
  29. // [['accident_id'], 'integer'],
  30. // [['content'], 'string', 'max' => 512],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'accident_id' => 'Accident ID',
  41. 'content' => 'Content',
  42. ];
  43. }
  44. }