InquirerLog.php 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "inquirer_log".
  6. *
  7. * @property int $id
  8. * @property int $idq
  9. * @property string $hash
  10. * @property string $dt
  11. */
  12. class InquirerLog extends \yii\db\ActiveRecord
  13. {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public static function tableName()
  18. {
  19. return 'inquirer_log';
  20. }
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['idq', 'hash'], 'required'],
  28. [['idq'], 'integer'],
  29. [['dt'], 'safe'],
  30. [['hash'], 'string', 'max' => 64],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'idq' => 'id вопроса',
  41. 'hash' => 'Hash',
  42. 'dt' => 'дата голоса',
  43. ];
  44. }
  45. }