init
This commit is contained in:
65
models/LogsUnknow.php
Normal file
65
models/LogsUnknow.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace app\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "logs_unknow".
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $plate
|
||||
* @property string $plate_image_in
|
||||
* @property string $frame_image_in
|
||||
* @property int $time_in
|
||||
* @property string $plate_image_out
|
||||
* @property string $frame_image_out
|
||||
* @property int $time_out
|
||||
* @property string $seal_no
|
||||
* @property string $note
|
||||
* @property string $factory
|
||||
*/
|
||||
class LogsUnknow extends \yii\db\ActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'logs_unknow';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['plate'], 'required'],
|
||||
[['plate_image_in', 'frame_image_in', 'plate_image_out', 'frame_image_out', 'seal_no', 'note'], 'string'],
|
||||
[['time_in', 'time_out'], 'integer'],
|
||||
[['plate'], 'string', 'max' => 50],
|
||||
[['factory'], 'string', 'max' => 100],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'plate' => 'Plate',
|
||||
'plate_image_in' => 'Plate Image In',
|
||||
'frame_image_in' => 'Frame Image In',
|
||||
'time_in' => 'Time In',
|
||||
'plate_image_out' => 'Plate Image Out',
|
||||
'frame_image_out' => 'Frame Image Out',
|
||||
'time_out' => 'Time Out',
|
||||
'seal_no' => 'Seal No',
|
||||
'note' => 'Note',
|
||||
'factory' => 'Factory',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user