TimestampBehavior::class, 'value' => time() ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'mch_id'], 'required'], [['store_id', 'mch_id', 'created_at', 'is_delete', 'updated_at'], 'integer'], [['price'], 'number'], [['city', 'name'], 'string'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'mch_id' => 'mch id', 'price' => 'Price', 'city' => 'City', 'updated_at' => '更新时间', 'created_at' => '创建时间', 'is_delete' => '删除', 'name' => '名称' ]; } }