Blame view

domain/device/models/CreateBatch.php 545 Bytes
aa2f3513   xu   1. 删除冗余的代码
1
2
<?php

931eed21   xu   1. A授权接口开发
3
namespace domain\device\models;
aa2f3513   xu   1. 删除冗余的代码
4

931eed21   xu   1. A授权接口开发
5
use yii\behaviors\TimestampBehavior;
aa2f3513   xu   1. 删除冗余的代码
6
7
use yii\db\ActiveRecord;

931eed21   xu   1. A授权接口开发
8
class CreateBatch extends ActiveRecord
aa2f3513   xu   1. 删除冗余的代码
9
10
11
12
13
14
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
931eed21   xu   1. A授权接口开发
15
16
17
18
19
20
21
22
23
24
25
26
        return '{{%create_batch}}';
    }

    public function behaviors()
    {
        return [
            'time' => [
                'class' => TimestampBehavior::className(),
                'createdAtAttribute' => 'created_at',
                'updatedAtAttribute' => 'updated_at',
            ]
        ];
aa2f3513   xu   1. 删除冗余的代码
27
28
    }
}