TimestampBehavior::class, 'value' => time() ] ]; } /** * @inheritdoc */ public static function tableName() { return '{{%monitor}}'; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'status','created_at','updated_at'], 'integer'], [['store_id','name','serial'], 'required'], [['name','serial','code','cover_pic'], 'string'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'name' => '设备名称', 'serial' => '序列号', 'code' => '验证码', 'status' => '在线状态', 'created_at' => '首次绑定时间', 'cover_pic' => '封面图片', 'updated_at' => '更新时间' ]; } }