TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['store_id', 'name'], 'required'], [['store_id','updated_at', 'created_at', 'is_delete', ], 'integer'], [['name', 'phone', 'address', 'date', 'serve', 'price', 'serve_man', 'insurance', 'report', 'search_num'], 'string', 'max' => 255], [['live_room_url'], 'string'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'name' => '名称', 'phone' => '手机号', 'address' => '地址', 'date' => '服务时间', 'serve' => '服务项目', 'price' => '服务金额', 'serve_man' => '服务人员', 'insurance' => '保单信息', 'report' => '报告', 'search_num' => '剩余查询次数', 'is_delete' => '是否删除:0=否;1=是;', 'created_at' => '添加时间', 'updated_at' => 'Update Time', 'live_room_url' => '绑定直播间地址' ]; } }