| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "Descarga".
- *
- * @property int $id
- * @property string|null $hash
- * @property string|null $estacion
- * @property string|null $archivo
- * @property string|null $ciudad
- * @property string|null $pc
- * @property string|null $fecha
- * @property bool|null $descargado
- * @property string|null $nombre
- * @property string|null $ruta
- */
- class Descarga extends \yii\db\ActiveRecord {
- /**
- * {@inheritdoc}
- */
- public static function tableName() {
- return 'Descarga';
- }
- /**
- * {@inheritdoc}
- */
- public function rules() {
- return [
- [['fecha'], 'safe'],
- [['descargado'], 'boolean'],
- [['hash'], 'string', 'max' => 32],
- [['estacion'], 'string', 'max' => 30],
- [['ciudad', 'pc'], 'string', 'max' => 20],
- [['archivo', 'nombre', 'ruta'], 'string', 'max' => 100],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels() {
- return [
- 'id' => 'ID',
- 'hash' => 'Hash',
- 'estacion' => 'Estacion',
- 'archivo' => 'Archivo',
- 'ciudad' => 'Ciudad',
- 'pc' => 'Pc',
- 'fecha' => 'Fecha',
- 'descargado' => 'Descargado',
- 'nombre' => 'Nombre',
- 'ruta' => 'Ruta',
- ];
- }
- }
|