Descarga.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "Descarga".
  6. *
  7. * @property int $id
  8. * @property string|null $hash
  9. * @property string|null $estacion
  10. * @property string|null $archivo
  11. * @property string|null $ciudad
  12. * @property string|null $pc
  13. * @property string|null $fecha
  14. * @property bool|null $descargado
  15. * @property string|null $nombre
  16. * @property string|null $ruta
  17. */
  18. class Descarga extends \yii\db\ActiveRecord {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName() {
  23. return 'Descarga';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules() {
  29. return [
  30. [['fecha'], 'safe'],
  31. [['descargado'], 'boolean'],
  32. [['hash'], 'string', 'max' => 32],
  33. [['estacion'], 'string', 'max' => 30],
  34. [['ciudad', 'pc'], 'string', 'max' => 20],
  35. [['archivo', 'nombre', 'ruta'], 'string', 'max' => 100],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels() {
  42. return [
  43. 'id' => 'ID',
  44. 'hash' => 'Hash',
  45. 'estacion' => 'Estacion',
  46. 'archivo' => 'Archivo',
  47. 'ciudad' => 'Ciudad',
  48. 'pc' => 'Pc',
  49. 'fecha' => 'Fecha',
  50. 'descargado' => 'Descargado',
  51. 'nombre' => 'Nombre',
  52. 'ruta' => 'Ruta',
  53. ];
  54. }
  55. }