banki.test/models/Image.php

47 lines
790 B
PHP

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "image".
*
* @property int $id
* @property string $sha256
* @property string $original_name
*/
class Image extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'image';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['sha256', 'original_name'], 'required'],
[['sha256', 'original_name'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'sha256' => 'Sha256',
'original_name' => 'Original Name',
];
}
}